Virtual folder question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,
 
I am looking for a way to setup a virtual folder/alias on apache to identify each customer in my application.
 
We currently have the following in place on our web application: 1 alias called booking with a querystring parameter called site to identify each customer:-
http://www.xyz.com/booking/customer/home.php?site=client1
 
This is fine but causes problems when dealing with sessions and having to store a cookie on the browser to remember the site reference i.e. client1, client2 etc... The site reference also determines which database is loaded and other options like stylesheet and images etc.
 
I would like to migrate this to the following example :-
http://www.xyz.com/client1/booking/customer/home.php
 
Here client1 is the identifer for each customer but I do not want to create hundreds of folders on the system for each customer as the application code only exists in one place.
 
Can this be achieved by using Apache and the mod_rewrite module and can anyone advise or suggest how I go about doing this.
 
I have limited knowledge of the mod_rewrite module or any other modules in Apache.
 
Many thanks.
 
Regards
Philip Radford
--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux