H
H
Helen29012020-12-04 21:59:52
htaccess
Helen2901, 2020-12-04 21:59:52

How to make a redirect with multiple slashes on subdomains?

Have tried this. Removes slashes on site.ru////

############################################################################
#### Убираем повторяющиеся слеши (/) в URL                              ####
############################################################################
RewriteCond %{THE_REQUEST} //
   # Проверяем, повторяется ли слеш (//) более двух раз.
RewriteRule .* /$0 [R=301,L]
   # Исключаем все лишние слеши.

but on internal pages it removes multiple slashes, but 1 still remains at the end.
m.site.ru/page1////
redirects to
m.site.ru/page1/
and you need to remove this slash at the end altogether.
slash is not removed
how to make it so that the slash on the subdomain was not at all at the end of the url?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question