Hi there,
I have two domains for example www.male.com and www.female.com which both point to the same website app. In this app I have an HTTP module which checks if the session of the user is still active and if so checks if the user is a male or female.
I want to check from which domain the user entered the website. If the user is a male but entered (came from) www.female.com, the user must be redirected to www.male.com. The opposite must be done in case of a women.
Other scenario's are:
a male user enters www.female.com/articles/test.aspx, it should be redirected to www.male.com/articles/test.aspx
a male user enters test.female.com/main/default.aspx, it should be redirected to test.male.com/main/default.aspx.
I am using ASP.NET 3.5 on a IIS 7.0 box.
Gr
Martijn