Last post Oct 28, 2010 04:25 AM by Deleo
Oct 14, 2010 10:06 AM|khalidelmeknesi|LINK
I have an asp.net website and its hosted in IIS7, on my developer environment. I have bind the website to some domains for example:
The word before the domain (subdomain) is very important because I have a method who get some data depending on this word.
Some examples for the current situation:
Now I would like to change the url after the customer is logged on. When a user is logged on he get for example this url:
Some examples for the new situation:
Can someone help me in the right way to implement this. I have read and heard about a httpmodule en url rewrite. Is this the best solution to implement this?
Oct 15, 2010 08:53 AM|khalidelmeknesi|LINK
Oct 20, 2010 06:21 AM|Deleo|LINK
You need to setup a new subdomain with customer.mypage.com.
then you need to check that all request done to this page is authenticated.
What you show behind the domain is irrelevant and you can use the Url routing module from ASP .NET
You should probably store the users in a profile database as well, and in that profile have the users mapped to which server they are allowed to enter. For example, Obama user has access to customer.mypage.com/new york, but not customer.mypage.com/paris.
In your profile have a property that says: "Access" or something, that contains an array of all the places that user have access to.
If Obama try to access customer.mypage.com/paris, redirect or server.transfer to paris.mypage.com
Oct 28, 2010 03:53 AM|khalidelmeknesi|LINK
That is not where Im looking for.
I have used the iis url rewrite module.
Oct 28, 2010 04:25 AM|Deleo|LINK
thanks for posting the solution :)
I have to look into the difference between ASP .NET routing (which i recommended), and IIS url rewrite module, maybe the latter is better :)