Answer the question
In order to leave comments, you need to log in
How to write the following rule in .htaccess?
There is a rule (found on the Internet):
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*[^/])$ $1/ [L,R=301]
Answer the question
In order to leave comments, you need to log in
I wrote in detail here https://klondike-studio.ru/standarts/standartnyy-h...
In general, the slash should be semantically and redirects should go to the slash.
In short, I painted everything here, all you need to do is turn it the other way around.
But each line is commented.
Just delete what you don't need.
put all this before activating the CNC core
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question