Apr 14 2010

Custom 404 error page

Did you know that you can add custom 404 error page to your site? Well, you do and it’s also quite easy to do. So why to do that? Sometimes there might be broken links in your site or user will enter your address wrong. So you should do your site as easy to use as you can. So what there should be? Layout can be same than in your actual site, because if there is some kind of navigation and / or search, those should definitely be shown also in your error page, so that users can find what they were looking for. Also a link to your main page and / or possible sitemap can be useful. After creating your custom 404 error page, you also need to create .htaccess file. Notice the dot in front! Easy way to create the file is with simple text editor, for example Notepad in Windows. Write “ErrorDocument 404 /error.html” in the file. Name of the error page can be what ever you want it to be, error.html is just an example. Copy both of these files in the root of your website hierarchy. I hope that this post helps you to create more user-friendly websites :)