N
N
noxmag2018-08-15 11:24:49
MODX
noxmag, 2018-08-15 11:24:49

How to set up a redirect in modx so that when you exit a section, the section name is not added to the url again?

Good afternoon everyone. If you go to site.ru/, then go to services-> service1 (or any other), then the url becomes site.ru/uslugi/usluga1.html (logically and correctly), but if you further click on any menu item or go to other services, then the url becomes site.ru/uslugi/uslugi/usluga1.html and of course 404 error. I set the base .htaccess, but it's still the same. CMS modx revo.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Grabko, 2018-08-15
@noxmag

Check the links in the menu, it should go without a slash at the beginning.
Perhaps adding to head will also help
<base href="/">

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question