I'm providing
SEO advice to a new client who has a corporate Web site built using ASP.NET. I am a classic ASP and PHP developer, but have not worked with ASP.NET. One of the problems I found is that the search engines have indexed the site under two versions of the URL, one with and without the www subdomain. That's a common problem. The secondary issue is that the home page can be reached using 4 variations of the URL, as in:
http://www.domainname.com/
http://domainname.com/
http://www.domainname.com/app/ (home page actually resides here)
http://domainname.com/app/
Is there an ASP.NET developer that knows the best way to deal with this issue on this platform? I know I need a 301 redirect routine to standardize the URLs to
http://www.domainname.com/.
This is a common problem that is easily resolved on Unix and Linux servers using .htaccess, but I have not found a similar solution for ASP.NET sites. ASP.NET does have a built-in URL rewriting routine (it's about time) that looks like it uses an XML file for the rewrite, but I have not found a reference to a site-wide 301 redirect or a method to force standardization of the URLs. I'm looking for a recommendation for the best way to deal with this issue with ASP.NET.