URL Rewriting for user accounts

Posted by Igor K on Stack Overflow See other posts from Stack Overflow or by Igor K
Published on 2010-05-19T14:55:31Z Indexed on 2010/05/19 15:10 UTC
Read the original article Hit count: 233

We currently have domain.com/username redirected to domain.com/setsession.asp?u=username which then redirects to the app at domain.com/theapp.

This means users always see domain.com/theapp, so browsing to a page shows domain.com/theapp/somepage.asp

Looking to move this to subdomains ie

username.domain.com

(we'll get the host name and work out the user from that). How can this be set up? Should we move the app itself to say theapp.domain.com and then rewrite username.domain.com to theapp.domain.com and everything works?

If thats right, how can we do the URL rewrite (mod_rewrite via ISAPI Rewrite for IIS or URL Rewriting for IIS) so that we can still access webmail.domain.com, etc?

© Stack Overflow or respective owner

Related posts about mod-rewrite

Related posts about url-rewriting