If you want to redirect your visitors every time they catch into an HTTP 404 error, use can use the below code in your .htaccess file :


ErrorDocument 404 /errors/notfound.html

This redirects the user to /errors/notfound.html whenever a 404 error happen. You can of course redefine also other http errors codes (403, 500… and so on)

Tags: ,

Leave a Reply