I've seen websites like google and facebook redirect from "facebook.com" or "www.facebook.com" to "http://www.facebook.com" versions of their website. How can I redirect like that when people first visit my website?
This is my code so far:
var link = HttpContext.Current.Request.Url.AbsoluteUri.ToLower();
var path = HttpContext.Current.Request.Url.AbsolutePath;
if (link.StartsWith("http://www") == false)
{
Response.Redirect("http://www.arcadeLegend.com" + path);
}