Create a custom 404 error page with Freeway is really easy, so let's get started:
- Create a new page, and name it something like "This page doesn't exist!"
- Change the filename of the page to
404.html
- Build the page. At there very least, you should have:
- A non-technical explanation of what went wrong (bonus points if it's humorous!).
- A call-to-action. This might just be a link to your home page, or a search field.
- The navigation menu and website title.
- The default website footer.
- Add this line to your .htaccess file:
Obviously, changeErrorDocument 404 http://example.com/404.html
example.com
to your domain. The .htaccess file is located at the domain root (the same place as yourindex.html
file). Keep in mind that the .htaccess file is usually invisible, so you will have to set your FTP client to show hidden files to see it. If it doesn't exist, create a new file using your favorite text-editor, save it ashtaccess.txt
, then after you upload it to your server rename it to.htaccess
. - Go a test it!
No comments:
Post a Comment