Answer the question
In order to leave comments, you need to log in
MODX REVO how to remove /404 redirect from non-existent pages?
Now opening site.com/sdfsdfsdf redirects to site.com/404/ and displays error_page.
How to remove this redirect and leave the URL the same ( /sdfsdfsdf ) but still display the error_page template.
I did not find any rules in .htaccess:
RewriteEngine On
RewriteBase /
# http -> https
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteCond %{REQUEST_URI} !^/robots.txt$
RewriteCond %{REQUEST_URI} !^/r.php
RewriteRule .* https://domain.ru%{REQUEST_URI} [R=301,L]
# Rewrite www.domain.com -> domain.com -- used with SEO Strict URLs plugin
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^domain\.ru [NC]
RewriteRule (.*) https://domain.ru/$1 [R=301,L]
RewriteCond %{REQUEST_URI} ^/robots.txt$
RewriteRule ^(.*)$ r.php [L,QSA]
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question