0

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.

0
0

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);
}

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