A
A
alex4answ2018-11-23 16:33:59
MODX
alex4answ, 2018-11-23 16:33:59

Why is ModX 301 redirect not working?

Good afternoon, I have ModX Revo,
I'm trying to make a 301 redirect from oldpage.html to newpage.html , but it doesn't work
Installed Redirector, but when I try to save the redirect, I get "Error, the redirect could not be saved", the task is urgent, go directly to .htaccess
We do it right after
RewriteEngine On
RewriteBase /

Redirect 301 /oldpage.html http://site.com/newpage.html (пробовал и \.html)

Does not work.
Let's try next:
RewriteRule ^/oldpage.html$ http://site.com/newpage.html [R=301,L] (пробовал и \.html)

Everything is exactly the same, it doesn't work.
We move on without understanding what is happening:
RewriteCond %{HTTP_HOST} ^oldpage.html$ [NC] (пробовал и \.html)
RewriteRule http://site.com/newpage.html [R=301,L]

In vain.
Wapallayzer says that the web server is nginx, then it's clear, BUT when I remove htaccess everything stops working..
phpinfo says that modrewrite is enabled Tell me
what's the matter, and how to deal with it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Savostin, 2018-11-23
@savostin

With a swoop, without even knowing which web server, you can’t decide.
If it's very, very urgent, create an oldpage resource with the "Link" type and enter a new URL in the "Link" field..

V
Viktor Taran, 2018-11-24
@shambler81

show all .htaccess

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question