in reply to Re: Redirects with query string
in thread Redirects with query string

I got this to work (in case anyone needs the same thing).
RewriteEngine on RewriteCond %{QUERY_STRING} ^f=12 RewriteRule ^viewforum.php http://www.newdomain.com/forums [R=301]
That makes anyone coming to

http://www.mydomain.com/forums/viewforum.php?f=12

get redirected to

http://www.newdomain.com/forums.

Replies are listed 'Best First'.
Re^3: Redirects with query string
by Anonymous Monk on Nov 25, 2015 at 09:05 UTC
    Nice work thanks. The only difference I but (.) in the end. RewriteRule ^viewforum.php http://www.newdomain.com/forums. [R=301] thanks