hi,
I've developed a web program and let say the main url is
http://domain.comI will be distributing different URLs for different users, say
http://domain.com/user1and
http://domain.com/user2however, both this URLs will be pointing to the base code at
http://domain.comdepending on whether is user1 or user2, the system configuration will extract from the respective database.
my question is, how do i use mod_rewrite to map the different urls to the main url with transparency.
I've managed to do it with alias in httpd.conf. e.g:
alias /user1 /var/www/html/myproject
alias /user2 /var/www/html/myproject
however, if i were to do this, i would have to restart apache every time i've got a new user. so i've decided to use .htaccess instead but realised that alias is not availble for it.
I've tried with rewriterule but with no success.
Please advise. thank you