: Add a record in my panel route my domain from host.com to www.host.com in dot net panel Is there a way to enter a new register to route all the request to myhost.com to www.myhost.com in
Is there a way to enter a new register to route all the request to myhost.com to myhost.com in the dot net panel.
More posts by @Samaraweera270
1 Comments
Sorted by latest first Latest Oldest Best
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);
}
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.