I want if someone types way2k.com it should be redirected to http://www.way2k.com or http://www.way2k.com/default.aspx
or if someone types http://way2k.com it should be redireted to http://www.way2k.com or http://www.way2k.com/default.aspx
for that i have written code in global.asax but it is now work properly.
what i have written, it redirects to http://www.way2k.com/default.aspx when someone types way2k.com or http://way2k.com
but when someone types http://www.way2k.com/ it doesnot redirect to http://www.way2k.com/default.aspx
void Application_BeginRequest(object sendr, EventArgs e)
{
if (HttpContext.Current.Request.Url.ToString().ToLower().Contains("http://way2k.com/"))
{
HttpContext.Current.Response.Status = "301 Moved Permanently";
HttpContext.Current.Response.StatusCode = 301;
HttpContext.Current.Response.AddHeader("Locati ...
Go to the complete details ...