Forum Moderators: phranque
I want to redirect with .htaccess all queries to aaa.com -> bbb.com
So that aaa.com?a=1 redirects permanently (301) to bbb.com?a=1
Something like this should do the trick for you:
RewriteEngine On RewriteCond %{HTTP_HOST} ^(www\.)?aaa\.com [NC] RewriteRule (.*) [bbb.com...] [R=301,L]
BUT: Calls to "/cgi-bin/script.cgi" are not forwarded
Could it be that "cgi-bin" is already redirected so that this htaccess has a lower priority?
Jim