/ Published in: C#

Add this code to your Global.asax in your ASP.NET project, in the \"Application_BeginRequest\" event.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
if (HttpContext.Current.Request.Url.ToString().ToLower().StartsWith("http://www")) { Response.Redirect("http://WEBSITE.COM" + HttpContext.Current.Request.RawUrl.ToString()); }
Comments
