Subscribe
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.alice\.com [NC]
RewriteRule ^(.*) http://www.mycurrentdomain.com/alice/$1 [L,R]
RewriteCond %{HTTP_HOST} ^www\.alice\.com [NC]
RewriteRule ^(.*) http://www.mycurrentdomain.com/alice/$1 [L,R]
RewriteCond %{HTTP_HOST} ^alice\.com [NC]
RewriteRule ^(.*) http://www.mycurrentdomain.com/alice/$1 [L,R]
RewriteCond %{HTTP_HOST} ^(www\.)?alice.com$
RewriteCond %{HTTP_HOST} ^(www\.)?alice.com$
RewriteRule ^(.*) http://mycurrentdomain.com/alice/$1 [L,R]RewriteRule ^(.*) http://www.mycurrentdomain.com/alice/$1 [L,R]
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} dev.digi-manage.com
RewriteCond %{REQUEST_URI} !dev/
RewriteRule ^(.*)$ dev/$1 [L]
RewriteCond %{HTTP_HOST} test.digi-manage.com
RewriteCond %{REQUEST_URI} !test/
RewriteRule ^(.*)$ test/$1 [L]
RewriteCond %{HTTP_HOST} kfb.digi-manage.com
RewriteCond %{REQUEST_URI} !kfb/
RewriteRule ^(.*)$ kfb/$1 [L]
RewriteCond %{HTTP_HOST} ^(www\.)?alice.com$
RewriteRule ^(.*) http://mycurrentdomain.com/alice/$1 [L,R]
You are not logged in, either login or create an account to post comments
something along the lines of
<virtualhost yourdomain.com:80>
ServerName yourdomain.com
ServerAlias www.yourdomain.com
DocumentRoot /path/to/site/subdirectory/
</virtualhost>
in its simplest form - your apache version will dictate the placement and directives
posted by handybitesize at 7:13 AM on January 29