How in htaccess to set it so that at 404, 403 it does not redirect to the page with an error, but load the content of the page with an error?

If you enter for example https://core.lotus-app.ru/codingru then it will redirect to https://core.lotus-app.ru/404 . The task is to make the client stay on the same page ( https://core.lotus-app.ru/codingru ), but at the same time it displays the content from ( https://core.lotus-app.ru/404 )

Excerpt from .htaccess for redirect:

 ErrorDocument 403 https://core.lotus-app.ru/403 ErrorDocument 404 https://core.lotus-app.ru/404 

Upd 03/14/2018: The issue is no longer relevant, switched to node.js.

  • .htaccess show your. - Visman
  • @Visman showed excerpt - Sviatoslav Zaytsev
  • While working on the option to redirect all requests to one script and from there already show the desired content - Sviatoslav Zaytsev
  • Now it is usually done. A single point of entry into the system and the router, which calls the desired class with the method on the current url. If the url is not in the list of the existing ones, then it outputs a 404 header and a blank page. Similarly, other errors. - Visman

0