Use different templates based on URL
Posted on 2008-06-12
Hi. I am close to launching two websites that use the same web application, but each uses a different stylesheet for the same master page. Currently I am storing a session variable that indicates which "site" the user is currently on and I set the appropriate stylesheet.
Basically, the template displayed must depend on the URL. When I launch the site next week, what is the best way to achieve this?
I would also like to retain the URL, so if there is a NoticeBoard.aspx page, then the person coming in on ThisUrl.com should see ThisUrl.com/NoticeBoard.aspx, and the user coming in on OtherUrl.com should see OtherUrl.com/NoticeBoard.aspx.