I need to be able to direct all traffic from domain2.com to domain1.com, except one single folder. Is this possible? For example: www.domain2.com -> www.domin1.com www.domain2.com/keep -> www.domain2.com/keep Thanks in advance.
Also: www.domain2.com/test.html -> www.domain1.com/test.html www.domain2.com/* -> www.domain1.com/* (any other file/folder other than the "keep" folder) Thanks.
I've got it working, but not the way I want it to: domain2.com/.htaccess Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^(.*)$ http://www.domain1.com/$1 [R=301,L] Code (markup): domain2.com/keep/.htaccess RewriteEngine off Code (markup): I would rather use only one .htaccess file in the root directory if possible. Also, would like for the url shown when you go to www.domain2.com/test.html to show "www.domain2.com/test.html" instead of "www.domain1.com/test.html". Thanks.
Finally got it figured out on my own. domain2.com/.htaccess RewriteEngine on RewriteBase / RewriteRule ^(.*)$ http://www.domain1.com/$1 [P] Code (markup):