I have two domains, for example www.male.com and www.female.com, which point to the same application for the website. In this application, I have an HTTP module that checks if a user session is active and if it checks whether the user is male or female.
I want to check from which domain the user entered the site. If the user is a man, but entered (came from) www.female.com, the user should be redirected to www.male.com. The opposite should be done in the case of women.
Another scenario:
A male user enters www.female.com/articles/test.aspx and should be redirected to www.male.com/articles/test.aspx
the 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 in an IIS 7.0 window.
Gr
Martine
source
share