Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 621255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:51:16+00:00 2026-05-13T18:51:16+00:00

This question could be posted on ServerFault as well, however there is definitely a

  • 0

This question could be posted on ServerFault as well, however there is definitely a coding element involved due to the rewrite rules in my web.config. This is why the question does indeed have a home on SO.

I’ve recently deployed a website to a new server and have discovered that trying to access my site via www.example.com returns a 404 while example.com works just fine. I’m not sure if this is an IIS configuration issue or with the rewrite rules I’ve specified in my web.config.

I have not redployed the site without the rules shown below to see if they are indeed the issue. These rules were working fine while the site was hosted by DiscountASP.NET.

<rewrite>
  <rules>
    <rule name="Redirect to NON-WWW" stopProcessing="true">
      <match url=".*"/>
      <conditions>
        <add input="{HTTP_HOST}" pattern="^www.rsolberg.com$"/>
      </conditions>
      <action type="Redirect" url="http://rsolberg.com/{R:0}" redirectType="Permanent"/>
    </rule>
    <rule name="Default Document" stopProcessing="true">
      <match url="(.*)default.aspx"/>
      <action type="Redirect" url="{R:1}" redirectType="Permanent"/>
    </rule>
  </rules>
</rewrite>

I’ve also confirmed with GoDaddy that there is a WWW cname pointed to @.

Working:
http://rsolberg.com

Not Working:
http://www.rsolberg.com

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T18:51:16+00:00Added an answer on May 13, 2026 at 6:51 pm

    I would confirm that IIS has both host headers (rsolberg.com and http://www.rsolbeg.com) listed for your site. Without the www version requests will make it to the correct web server but IIS won’t serve the correct site and may be returning a generic 404 instead. I don’t think the redirect/rewrite is involved at all as no 301/302s are getting sent.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I realize that this question is slightly server related and could be posted on
I suppose this question could just as easily be applied to PHP with regard
This is probably a kinda commonly asked question but I could do with help
This is a C# question, but really could be language-agnostic I have inherited a
I saw this tip in another question and was wondering if someone could explain
This is a pretty-much theoretical question, but.. How much of an operating system could
Originally posted on Server Fault , where it was suggested this question might better
(See this question in ServerFault ) I have a Java client that uses Socket
I've read every answer available for this question that I could find, including this
When I first posted this question I had strong coupling between my web service

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.