: IIS 7.5 and 404 error with non-www domain but no subdomain We keep getting 404s on our domain when it is example.com but not www.example.com. I tried to redirect using the IIS rules with URL
We keep getting 404s on our domain when it is example.com but not example.com.
I tried to redirect using the IIS rules with URL Rewrite but it throws an error for example.com as well. The browser won't even show the error. Any ideas on how to figure out what is going on? Thanks!
More posts by @Samaraweera270
3 Comments
Sorted by latest first Latest Oldest Best
I solved it by using the naked domain redirect page. wwwizer.com/naked-domain-redirect Worked like a charm.
Does your domain have an A record for both example.com and example.com?
There are a number of free online tools that will show you the DNS records for your domain.
After that, as Murray states, you need to ensure that your site in IIS has bindings for both versions of the domain if you're not using the default domainless binding.
At times IIS 7.x needs to accept the domain before it can process your web.config file.
From your IIS Manager (Internet Information Services Manager)
Click on your website.
To the right in the Action column find "Edit Site" below that you'll see Bindings.
In Bindings > you will see "Type" , "Hostname", "Port", "IP Address", "Binding Information".
You will see your http, domain.ext, 80, 10.0.0.1, Information.
Add another entry: http, domain.ext, 80, 10.0.0.1, information.
To force good SEO you can create your redirect rules to redirect domain.com to domain.com.
Be sure to add or remove the trailing slash as well if do not redirect to a static page.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.