Answer the question
In order to leave comments, you need to log in
Redirect eats direct label, how to fix?
The site has a redirect from pages with a slash to pages without a slash
Options +FollowSymLinks
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^(.+)/$
RewriteRule ^(.+)/$ /$1 [R=301,L]
Answer the question
In order to leave comments, you need to log in
the problem is that only RewriteCond can work with QUERY_STRING
RewriteRule itself cannot work with GET, but you can work on passing it through QSA
See how it works here:
RewriteCond %{REQUEST_FILENAME} !^favicon\.ico
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [L,QSA]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question