hide real domain name

Using a single web hosting account to host multiple sites

hide real domain name

Postby trim » Sat Mar 31, 2007 8:32 am

I have two domains:
1domain.com and 2domain.com

I would like that 1.domain.dom/dir contain files from 2domain.com/dir2
I also would like that nobody will se that this data are from 2domain.com

Pleae write on which server in which folder what i should put in .htaccess file.
Thanks! :)
trim
 
Posts: 1
Joined: Sat Mar 31, 2007 6:36 am

Postby richardk » Sun Apr 01, 2007 1:53 pm

You will need mod_proxy enabled as well as mod_rewrite. Try the following in a .htaccess file in 1.domain.dom's document root
Code: Select all
Options +FollowSymLinks

RewriteEngine On

RewriteRule ^dir(/(.*))?$ http://www.2domain.com/dir2/$2 [P,L]
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am


Return to Domain Handling

Who is online

Users browsing this forum: No registered users and 59 guests

cron