So i want to redirect:
first.comtosecond.comfirst.com/somethingtosecond.com/redir.php?q=something
So i did
RewriteCond %{HTTP_HOST} ^.*first.com$
RewriteRule ^(.*)$ http://second.com/redir.php?q=$1 [R,L]
But its only working for 1, it’s sending to second.com/redir.php?q=
I’d expect the 2nd case to be fine with your rules. For the first one you can add another rule: