S
S
Sergey2016-03-18 01:33:56
MODX
Sergey, 2016-03-18 01:33:56

Why is 301 redirect not working in MODX?

In general, the point is that in .htaccess there are redirects in the
redirect 301 /old_page site.ru/new_page style,
but when you go to the site.ru/old_page page, instead of redirecting to site.ru/new_page, will it redirect me to the site.ru/new_page page? q=pages/new_page that is, adds ?q= to the end of the link, etc.
Most likely this is due to this entry in .htaccess
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
but without it the site does not work at all
How can I fix this ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
neonox, 2016-03-18
@neonox

Tyts Have
you tried it?

E
Evgeny Shvelev, 2016-03-24
@mr-mit

use the Redirector addon and don't mess
with modx.com/extras/package/redirector

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question