Hello, do you know of a way to use htaccess to redirect domain1.com to domain2.com, so that uri " domain1.com " stays the same in clients browser.
Thank you!
Hello, do you know of a way to use htaccess to redirect domain1.com to domain2.com, so that uri " domain1.com " stays the same in clients browser.
Thank you!
I found these examples from this link:
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} domain2.com
RewriteCond %{REQUEST_URI} !subdirectory/
RewriteRule ^(.*)$ subdirectory/$1 [L]
or
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} domain2.com
RewriteCond %{REQUEST_URI} !mychatfolder/
RewriteRule ^(.*)$ http://www.domain1.com/subfolder/$1 [L]
I haven't tested these out though.