domain1.com
then on
domain1.com i have a folder
domain1.com/folder
I want domain2.com to mask domain1.com/folder and show only domain2.com in the url bar
this works fine but it shows the page then asked for the passwords (Im using .htpasswd).. i might need to wait longer for the changes to take effect... does the below code look okay for what i need...
- Code: Select all
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?domain2\.com$ [NC]
RewriteCond %{DOCUMENT_ROOT}/folder%{REQUEST_URI}/ -d
RewriteRule [^/]$ %{REQUEST_URI}/ [R=301,L]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{HTTP_HOST} ^(www\.)?domain2\.com$ [NC]
RewriteRule ^(.*)$ /folder/$1 [QSA,L]
Thanks in advance for your help....