It seems with the built in friendly routing library in .NET MVC, it would allow us to do something like this.
In case it\'s not obvious what I want to with the built
try to add this into your Global.asax :
if (HttpContext.Current.Request.Url.ToString().ToLower().Contains("http://YourSite.com"))
{
HttpContext.Current.Response.Status = "301 Moved Permanently";
HttpContext.Current.Response.AddHeader("Location", Request.Url.ToString().ToLower().Replace("http://YourSite.com","http://www.YourSite.com"));
}
it works and tested.