Answer the question
In order to leave comments, you need to log in
How to properly set up a redirect from without / to /?
Please tell me how to properly set up a redirect from without / to /
I tried this way, the whole site went to hell, css js img stopped connecting.
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
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