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

RE: [cobalt-users] [RaQ 4] Domain Directing



I have a customer who has requested a domain redirect on a virtual site that
is hosted with us.

The virtual site is www.tremper.com and its home directory is
/home/sites/www.tremper.com/web
Within the ' web ' directory there is another directory named ' family '

She has pointed a domain www.kortemeier.net to the same IP as
www.tremper.com and wants the
server to be able to distinguish which domain is heading its way.
e.g.
 - If a user types in http://www.tremper.com the server serves the page
/home/sites/www.tremper.com/web/index.html
 - If a user types in http://www.kortemeier.net the server serves the page
/home/sites/www.tremper.com/web/family/index.html

I think you can do this by using htaccess files.
Place the following in a ".htaccess" file in the *original* directory created by the virtual domain www.kortemeier.net, it should then redirect to whichever site you specify and mask the fact that it has done so. I'm not sure if this works precisely the same way on RaQ4's as I haven't tested it. However it works fine on my RaQ3.

RewriteEngine on
RewriteBase /
RewriteRule ^(.*)$ http://www.tremper.com/web/family/$1 [P]

Kam.