Answer the question
In order to leave comments, you need to log in
How to truncate combinations / with .htaccess? //? ///? after domain?
How to truncate combinations / with .htaccess? //? ///? after domain?
After the URL is truncated
RewriteRule ^(.*)\/$ http://%{HTTP_HOST}/$1 [L,R=301]
RewriteCond %{THE_REQUEST} \ /+([^\ \?]+)\?(\ |$)
RewriteRule ^(.*)$ /$1? [L,R=301]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question