So a lot of web apps have the customer choose their own subdomain, ie mycompany.webapp.com
Presumably, every subdomain works off the same set of files and the unique subdomain is perhaps stored as a session object. So how does the URL rewriting work?
If someone goes to mycompany.webapp.com, you have to rewrite their unique address to a dynamic page to set the session variable, ie webapp.com/mypage.php?cusomer=mycompany
But then when you redirected, you'd be at webapp.com/theappdirectory/ and not mycompany.webapp.com/
So how do they do it?
PS running IIS but the method should be the same for any server. The big thing for us is we cant do webapp.com/theappdirectory/mycompany/somefile.html, ie all the files reside in one directory and we'll have to set a session variable somehow whilst keeping the subdomain masked.