scandalous scandalous - 1 year ago 165
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

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download