Mobile app version of vmapp.org
Login or Join
Samaraweera270

: 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

@Samaraweera270

Posted in: #Domains #Iis #Subdomain

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!

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Samaraweera270

3 Comments

Sorted by latest first Latest Oldest Best

 

@Angie530

I solved it by using the naked domain redirect page. wwwizer.com/naked-domain-redirect Worked like a charm.

10% popularity Vote Up Vote Down


 

@Gloria169

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.

10% popularity Vote Up Vote Down


 

@Vandalay111

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme