Redirect all pages to WWW

Redirect all pages to WWW

Here is a simple method of ensure all requests to your application domain include the WWW subdomain prefix. Place the following code in your Global.asax file. Note: Uncomment the code in the RedirectToWWW method should you need to prevent redirects while testing…