Use a custom error document

Filed under: htaccess

Web servers have a default error document that it serves in cases of requests for pages that don’t exist. One can create a custom error document and tell the web server to use the custom error document instead of its default error document.

Steps to take to use a custom error document

  1. Create a custom error document. To view Zann-Marketing.com’s custom error document, click here.
  2. Add this line of code in your .htaccess file (preferably near the beginning) and your web server will use the custom error document when it can’t find the page requested.

    ErrorDocument 404 /your_error_document.html

divider

Leave a Comment