301 redirect root domain to www subdomain on godaddy windows hosting account
        Posted  
        
            by Greg
        on Server Fault
        
        See other posts from Server Fault
        
            or by Greg
        
        
        
        Published on 2009-07-15T22:11:38Z
        Indexed on 
            2010/04/26
            5:13 UTC
        
        
        Read the original article
        Hit count: 1185
        
If I type in domain.com and www.domain.com, they both show the same website, but show different urls in the address bar. I'd like visitors and search engines that just type "domain.com" to be redirected to "www.domain.com".
I'm using IIS 7 on a godaddy hosting account. How do I redirect all requests for "domain.com" to "www.domain.com"?
I have the default DNS setup, "domain.com" as my "A record" and the cname "www" points to my "A record".
© Server Fault or respective owner