Designing a website is serious business! While you are working on updating your site, you may create a link to a page on your site that doesn't (yet) exist. Instead of showing the user the default 404 error page, you can show users a customized error page! Note: This will only work for HTML pages. If you are using PHP pages on your site, please see #3 in the Additional Resources section below.
Step One: Create a file called .htaccess - Be sure the name of the file does NOT contain any extra characters like .txt or .html.
Step Two: Open the .htaccess file in a text editor and write the following lines:
ErrorDocument 404 http://myaccount.furpile.org/404.html
Replace myaccount with your account name. The most common kind of error is a 404 Not Found. You may add extra lines to the .htaccess file if you would like to set up additional error pages for other common errors such as 400 Bad Syntax, 403 Forbidden, and 500 Internal Server Error, which would look like:
ErrorDocument 400 http://myaccount.furpile.org/400.html
ErrorDocument 403 http://myaccount.furpile.org/403.html
ErrorDocument 500 http://myaccount.furpile.org/500.html
Step Three: You've set up your .htaccess file. Now it's time to create new pages for your customized error messages! Be sure to name your files exactly as they are referenced in the .htaccess file. For example, if your 404 error document is set to http://myaccount.furpile.org/404.html, create an HTML document named 404.html.
Step Four: Upload these files to your home directory and they will now be displayed whenever your site encounters an error!
You may find the additional resources to be helpful.
◄ Go Back
Page written by Starlight, Head Admin of furpile.org
Page doesn't comply with w3 xhtml standards because I got lazy :3