Naked domain to "www" redirect in Windows Server 2008

Naked domain to "www" redirect in Windows Server 2008 - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the Naked domain to "www" redirect in Windows Server 2008 error on your web browser. Problem :


I have a Windows server. I have several websites hosted on my server. Currently, I can only visit these websites if I include "www" (e.g., www.techtint.com).



I want the naked form of the URL to redirect to the www URL. I don't want a duplicate version of the website, but just want to permanently re-direct all the traffic to the naked URL to www.mysite.com.



I know it has something to do with A records and CNAME record, but it is all very confusing. Can someone explain to me in details on how I can accomplish this?


Solution :

Currently, I can only visit these websites if I include www. Eg:www.techtint.com



It appears that your DNS configuration has some issues: As indicated in the DNS health reports below, the nameservers for your domain are not resolving properly, and there are no MX (mailserver) records either. It does appear that you have A and CNAME records for the www subdomain however:



DNS health check



DNS health full report



Therefore, I would suggest working with your DNS provider (e.g., your domain registrar, webhosting/ISP company, or third-party DNS service) to resolve these DNS issues first.



I want the naked form of the URL to redirect to www.



If you want the root domain (techtint.com) to be accessible but redirected to the www subdomain, first you'll need to have an A record for the root domain that points to the same IP address as the A record for the www subdomain does (i.e., 96.127.134.97).



Next you'll want to add your root domain as a site in IIS7 as detailed in the steps here: Create a new site in IIS 7



After your root domain is reachable from a browser (note that it can take up to 72 hours for DNS changes to propagate throughout the Internet), you'll want to redirect the root domain to the www subdomain as covered here: IIS URL Rewrite – rewriting non-www to www


We hope that this article has helped you resolve the redirects, dns, url-rewriting error in your web browsers. Enjoy browsing the internet uninterrupted!

Comments

Popular posts from this blog

Redirected urls show in serp, with the original permalink but with the title and meta of the target page

How can I redirect everything but the index as 410?

How do I redirect traffic only if being accessed from a specific port?