Answer the question
In order to leave comments, you need to log in
How to remove the slash on the main page?
Guys, I can’t set up a redirect site on WordPress by removing the slash on the main page.
Tried it does not help
RewriteCond %{THE_REQUEST} ^[^?]+/
RewriteRule (.*) /$1 [R=301,L]
It seems that this one works but without the slash then there is a numerous redirect
RewriteEngine on
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^$ https://site.ru/ ? [R=301,L]
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