Mobile app version of vmapp.org
Login or Join
Sent6035632

: Naked domain to "www" redirect in Windows Server 2008 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.,

@Sent6035632

Posted in: #Dns #Iis7 #Redirects #UrlRewriting #WindowsServer2008

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., 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 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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Sent6035632

1 Comments

Sorted by latest first Latest Oldest Best

 

@Gloria169

Currently, I can only visit these websites if I include 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
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

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme