scandalous scandalous - 2 months ago 6x
Apache Configuration Question

htaccess redirect with question mark

Hello I'm trying to redirect

which is a local folder on my website via apache conf or .htaccess.

which is another website I own.

I tried

RewriteCond %{REQUEST_URI} /fr/welterweight.php
RewriteCond %{QUERY_STRING} ^welterweight.php$
RewriteRule ^/?$

But its not working


This rule should work from site root .htaccess:

RedirectMatch 302 ^/fr/welterweight\.php$

There is no need to match for QUERY_STRING as you original URL doesn't have any query string.