Answer the question
In order to leave comments, you need to log in
Removing duplicate slashes in url does not work on Bitrix static pages?
The task is to remove slashes in the url if they are repeated.
if (strpos($_SERVER['REQUEST_URI'], '//') !== false) {
global $APPLICATION;
LocalRedirect($APPLICATION->GetCurDir(), false, '301 Moved permanently');
}
https://site.ru/product/karandashi-plastikovye-18-tsv-maped-color-peps-strong-trekhgrannye-povyshennoy-prochnosti-862718////////
https://site.ru/product/karandashi-plastikovye-18-tsv-maped-color-peps-strong-trekhgrannye-povyshennoy-prochnosti-862718/
http://site.ru/uslugi/
http://papiruscopy3.itech-test.ru/uslugi////////
Answer the question
In order to leave comments, you need to log in
painted everything here
https://klondike-studio.ru/standards/standartnyy-h...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question