Answer the question
In order to leave comments, you need to log in
How to redirect from a link that does not have a slash at the end to a page that has a slash at the end?
How to redirect from a link that does not have a slash at the end to a page that has a slash at the end?
/salons/bagira-60857 to /salons/bagira-60857/
well, this is an example
in order not to duplicate pages in the search
options .htaccess or urlrewrite.php or rel="canonical"
put in .htaccess
RewriteCond %{REQUEST_URI} !( .*)/$
RewriteRule ^(.*[^/])$ $1/ [L,R=301]
leads to who knows where
beta.1relax.ru/home/bitrix/ext_www/beta.1relax.ru/...
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