I have a site with the following htaccess file:
RewriteCond %{THE_REQUEST} \s/+(.+?)\index.html/?[\s?] [NC]
RewriteRule ^ /%1 [R=302,NE,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php?uri=$1 [NC,L,QSA]
There are two pages that I need to redirect to a different domain. Currently I have them setup as 302 redirects with the following line:
Redirect 302 /some-url-slug https://example.com/some-new-url-slug
This does work to redirect to the new domain but the issue is it's adding the uri parameter to the redirected url so I get something like:
https://example.com/some-new-url-slug?uri=some-url-slug
I thought adding it above the rewrite rule would solve it, but it does not. How can I omit that rule but only for 2 specific pages?