Tag Archive

Using .htaccess to set a custom 404 page

Published on August 31, 2008 By George

This should be a decent, if short, follow-up for the recent post about using PHP for redirects. If you want to build a custom 404 page to avoid visitors seeing whatever 404 page their browser presents then try this in your .htaccess file: ErrorDocument 404 /notfound.html Or maybe you don’t want to actually build a [...]