301 Wildcard. I don't think I am doing it right. Need domain1.com/keyword5
to go to domain2.com/keyword5
. Instead it does this:
www.domain1.com/keyword5
goes to www.domain2.com
(tld, root, not the keyword5 directory)
Here is my .htaccess:
RewriteCond %{HTTP_HOST} ^domain1\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.domain1\.com$
RewriteRule ^(.*)$ "http\:\/\/www\.domain2\.com\/$1" [R=301,L]
PS: Can I do multiple domains on the same .htaccess? For example, I have 3 domains on the same public_html, can I 301 each of them like this?
RewriteEngine on
before the rules in your.htaccess
?