Answer the question
In order to leave comments, you need to log in
How to remove repeated slashes in the address bar?
The situation is non-standard. What we have:
.htaccess file:
RewriteEngine on
# убираем повторяющиеся слеши
RewriteCond %{REQUEST_URI} ^(.*)/{2,}(.*)$
RewriteRule (.*) %1/%2 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php
<?php
phpinfo(32);
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