How to make the response code of the server page 404 = 404?
CMS MODX revo 2.7.1
By means of modx to make:
a) the response code of the server page 404 = 404
b) what would you when you have incorrectly entered the url in the display site.ru/404? Ie so it works when not entered correctly the url redirects to the page but displays everything that was entered incorrectly.
In htaccess ordered an ErrorDocument 404 https:/site.ru/404 didn't help.
You need to create a 404 page in the document tree
in the settings of the cms the 404 error Page to specify the id of the created page
roger_OKon answered on March 23rd 20 at 19:00
Ie is required to use photo direct to the 404 page, the status of the server's response was also 404?
What is modx — don't know.
How to make a static error page — I don't know .htaccess did not work.
For error pages with PHP you can check the points where $_SERVER['REQUEST_URI'] or the value of $_SERVER['REDIRECT_STATUS'] (in the error handler — '404', with the direct query — seems to be undefined, but definitely not 404) and optionally specify the status of the server response 404 with the function header().