How to make the same rewrite rule without using THE_REQUEST
?
RewriteEngine On
# Rewrite multiple slashes with single slash after domain
RewriteCond %{THE_REQUEST} ^[A-Z]+\s//+(.*)\sHTTP/[0-9.]+$ [OR]
RewriteCond %{THE_REQUEST} ^[A-Z]+\s(.*/)/+\sHTTP/[0-9.]+$
RewriteRule .* http://%{HTTP_HOST}/%1 [R=301,L,NE]
Update:
.htaccess location - www.domain.com/url/.htaceess
Rewrite action - www.domain.com//url/id rewrited to www.domain.com/url/id
Seems there are no solution without Apache %{THE_REQUEST}
.