I am using asp.net 3.5 and IIS 6.
How can we automatically redirect pages from http(s)://example.com/* to http(s)://www.example.com/* ?
thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I did this with an HttpModule:
Then we need to add the module to our Web.Config:
Find the section
<httpModules>in the<system.web>section, it may well have a couple of other entries in there already, and add something like:You can see this in action here:
All end up on http://www.doodle.co.uk