Let’s see how to create a custom 404 page in two simple steps.
- You need to have access to your webserver and upload to its root the .htaccess file. This is a simple file which tells the server to show a default page in case the one we are trying to access cannot be found. The file looks like this:
ErrorDocument 404 http://www.yoursite.com/404.html
- Upload to your webserver a file called 404.html previously edited; you may write custom sentences like ‘Sorry, but the page you are trying to reach does not exist’. If you like, you may add a custom search box: just browse to google webmaster tool in your google account and choose ‘optimize your 404 page’.
- 404 on Smashing Magazine
- More about 404 on Smashing Magazine
