Custom 404 Error Page
The standard 404 error page can often be really frustrating for readers. Using a simple .htaccess file can allow you to customise your error page, and ensure that users are displayed a useful alternative.
Get unlimited downloads of 2 million+ design resources, themes, templates, photos, graphics and more. Envato Elements starts at $16 per month, and is the best creative subscription we've ever seen.
Shopify, Tumblr & More
Landing Pages & Email
Icons, Vectors & More
PowerPoint & Keynote
Sans Serif, Script & More
Logos, Print & Mockups
How to redirect the user
You need to create a
.htaccess file, using any standard text editor. Copy and paste the following code – substituting the path for your local 404 html page:
ErrorDocument 404 http://www.yoursite.com/404page.html
Once you’ve done that, you are ready to go. Here are a few ideas of things to include in your 404 page:
- A search box
- A link back to the homepage
- The same CSS and graphics as the rest of the website
- A website index or map
Get creative, make the user feel that they have an alternative route to find what they are looking for, and you’ll vastly improve their experience on your website!
Imaginative 404 Pages
To get inspiration, take a look at some other 404 pages. You’ll be surprised what you’ll find!