skip to Main Content

htaccess redirect query string, but encoded ? to & – Apache

I want to redirect https://www.aaa.com/query?v=abc123_ABC to: https://bbb.com/?url=https://www.aaa.com/query?v=abc123_ABC I use this in .htaccess: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ https://bbb.com/?url=https://www.aaa.com/$1 [L,B,NE,NC,QSA,R=301] </IfModule> But the output is: https://bbb.com/?url=https://www.aaa.com/query&v=abc123_ABC The ? was converted into &, what's wrong…

VIEW QUESTION
Back To Top
Search