Answer the question
In order to leave comments, you need to log in
Why htaccess redirect adds 2 times parameters to the address bar?
Htaccess on the site is configured to remove /index.php -> /
and when accessing /auto -> /auto/ (put a slash at the end),
but this rubbish turned out:
when accessing /auto/?p=2, everything is OK, and with /auto?p=2 -> it turns out /auto/?p=2?p=2
please help me to overcome the problem
RewriteEngine on
Options +FollowSymlinks
RewriteBase /auto/
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !\..+$
RewriteRule ^(.*)$ $1/ [L,R=301]
Answer the question
In order to leave comments, you need to log in
I don't see any rule here that could affect the GET parameter.
I hope you're not trying to pull it out?%{REQUEST_URI}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question