
September 14th, 2005, 07:40 AM
|
|
Registered User
|
|
Join Date: Jul 2005
Posts: 6
Time spent in forums: 1 h 44 m 10 sec
Reputation Power: 0
|
|
|
more than two domains at root
hi guys
I've created two sites and want to upload both sites at one root folder on linux server at /ver/www/html. I want if a visitor write URL of any of the site from the two, he/she will be taken to the perticular folder but the URL in the browser will be shown of the requested only not with subfolder.
for eg.
www.abc.com is in a folder named abc and www.xyz.com is in xyz folder in root folder, so the folder path for both site will be /var/www/html/abc & /var/www/html/xyz. now, if I write www.abc.com in my browser, it will take me to the folder /var/www/html/abc but the url in browser will be www.abc.com and the same for xyz site.
I'm trying for .htaccess file, but I don't have the exect redirection code for that. I can also use anything.php at /var/www/html folder but again the code problem. if anyone of you have the solution, please let me know.
thanks.
|