I've a domain name called mywebsite.com but I prefer users to access to my website through the www subdomain.How can I achieve a verification and redirection in asp.net mvc3 easily?When I was using php I did something like that : \[code\]if($_SERVER['SERVER_NAME'] != "www.mywebsite.com") header('Location: www.mywebsite.com');\[/code\]I'd like to find a similar way to achieve this kind of redirection in asp.net (C#) (I'd prefer not to set a 301 redirection but just a soft redirection like the one I was using in PHP).I know I could do a verification in each of my controllers action methods and the redirect the user if he is not on the subdomain www.mywebsite.com but I'd prefer to write once the verification and the redirection and I can't find where :/Thanks a lot !