I
I
Igor2016-12-14 14:22:02
MODX
Igor, 2016-12-14 14:22:02

Working links with a bunch of slashes. What are miracles?

Hello. Modx revo 2.3.5 It
suddenly turned out that the links on the site were glitched
It seems like they didn’t put anything third-party, like itself, well, or for a long time / always was.
Description of the problem: Any link opens with any number of slashes
Let's say there is https://site.ru/about
Here it works https://site.ru//about, https://site.ru////// /about, https://///site.ru/about , etc.
Never met similar where to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Shchavelev, 2016-12-14
@DetaliDigital

That's a good question, but you've concluded that this has always been in Modx and in all versions. Well, it's very interesting to hear debug options. I think you need a 301 redirect to solve this issue. But I think there is a more elegant solution.
I read it, I realized that .htaccess is a beautiful solution.

RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . %1/%2 [R=301,L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question