Hey, I want to use .htaccess to redirect the requested page to the exact same page on a different domain, and I want it to forward all POST data while CHANGING the address bar to the new domain, like a normal redirect.
Here's my code.
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.domain1.com/$1 [R=301,L]
The problem is that POST data is not sent this way. I then tried this:
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.domain1.com/$1 [R=301,P]
And that works to forward POST data, however the address bar does not change to the new domain1.com
How can I accomplish this?
Thanks!