Gozyurgeree
New Member
I write this code in the \[code\]Application_BeginRequest\[/code\]\[code\]if (!Request.IsLocal && Request.Url != null && !Request.Url.ToString().Contains("www.")){ string requestedUrl = Request.Url.ToString(); Response.Redirect(requestedUrl.Replace("http://", "http://www.").Replace("https://", "https://www."));}\[/code\]Is there any better way to do that?