Once you are working on starting a blog or website, don’t forget the all-important error pages – a standard response code in HTTP telling the user, in effect, that they’ve clicked on a broken link or other error origin.
It’s traditionally been an immense source of frustration, but in recent years, creatives have taken up the challenge of designing bespoke 404 pages that at least sweeten the pill of finding you’re in the wrong place.
You can also the .htaccess file to configure user-friendly custom error pages for errors such as 403, 404 and 500. Once you have prepared your error page – let’s say error.html, upload it to your base WordPress installation directory.
Then add the following code snippet to your .htaccess file to enable the custom error page:
# Custom error page for error 403, 404 and 500 ErrorDocument 404 /error404.html ErrorDocument 403 / error403.html ErrorDocument 500 / error500.html