Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

Is there a way to enter a new register to route all the request to myhost.com to www.myhost.com in the dot net panel.

share|improve this question

marked as duplicate by John Conde Feb 18 '13 at 2:15

This question was marked as an exact duplicate of an existing question.

I believe the Dot Net Control Panel does not offer this feature and you will need add something like this to your current configuration.

if (!Request.Url.Authority.StartsWith("www"))

{

    string url = string.Format("{0}://www.{1}{2}",

            Request.Url.Scheme,

            Request.Url.Authority,

            Request.Url.PathAndQuery);

           Response.Redirect(url, true);
}
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.