I know how to redirect pages using Rewrite. But when there is a 404 page, how can I display my own 404 page (I know I can rewrite it) and say that it is actually 404, and not just a rewritten page?
-edit -
How can I set an error code instead of a server request? if the user goes to / user / invaliduser / i, I would like to send 403 or 404, but my rewriter would send it to a valid page to display information about the user, so I would like to know how to say it doesn’t exist, not empty fields in p.
user34537
source
share