Tag: 404 Error

404 Page on a Static Site

Here’s a very quick, but very useful trick. You can catch 404 errors (page not found) on a static site and serve up a custom 404 page with a one-liner in your .htaccess file: ErrorDocument 404 /404.php The “/404.php” part is the path to whatever file you want to serve up as the error page. …

Continue reading

Permanent link to this article: https://blog.openshell.in/2010/12/404-page-on-a-static-site/