Changing the Server Root Folder

Using a single web hosting account to host multiple sites

Changing the Server Root Folder

Postby torter » Thu Aug 09, 2007 3:22 am

hello everybody

i am trying different cms scripts for my web site

so i install them into diffrent subfolders.

when it is entered www.domain.com, it must call www.domain.com/folder as root.

it is likely to changing domains root folder. how can i do that?

example

/var/www/vhosts/mydomain/httpdocs/ is my current root folder and i want my root folder :
/var/www/vhosts/avukatlar.gen.tr/httpdocs/folder
torter
 
Posts: 6
Joined: Thu Jul 05, 2007 2:20 am

Postby richardk » Thu Aug 09, 2007 1:58 pm

In a .htaccess file in your document root
Code: Select all
Options +FollowSymLinks

RewriteEngine On

RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^(.*)$ /folder/$1 [QSA,L]
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am

Postby torter » Thu Aug 09, 2007 9:44 pm

thks richardk
torter
 
Posts: 6
Joined: Thu Jul 05, 2007 2:20 am


Return to Domain Handling

Who is online

Users browsing this forum: No registered users and 40 guests

cron