IIS 6 – Set Up 301 Redirect for Non-WWW to WWW for SEO

301-redirectiisseo

Someone in the marketing department ran an SEO tool against our public website and found that about half of the links to our website go to www.mycompany.com, and half go to mycompany.com. Both of these go to the same IIS 6.0 web server. However, this apparently is bad for search engine optimization.

I've been reading up on 301 redirects which should fix this problem. However, when I follow the very simple directions, I get stuck in what appears to be an infinite loop.

Directions: IIS, under the website Properties on the "Home Directory" tab – use "A redirection to a URL", and put the proper address in… http://www.mycompany.com. When I go to the site after applying this change, I just get a rapid-fire loading bar in my browser, which sort of makes sense. Doesn't this redirect tell IIS to send the traffic to this new URL, which is in effect, itself?

Here is a sample tutorial with screenshots:
highposition.net/301-redirect-tutorial-iis/

Any help would be much appreciated!

Best Answer

You should define two websites in IIS; one should be a "dummy" site that only answers to "company.com" and redirects to "www.company.com", and the other should be your "real" site that answers to "www.company.com".

you can't do both on the same site using IIS redirection, or you'll be stuck in an infinite loop (as you already noticed).

Related Topic