Custom error pages
Loads of sites have their own error pages. Follow this tutorial to make your own!0.1Create a .htacess (include the dot at the beggining) file in notepad.
0.2 Add this code
ErrorDocument 404 http://www.yoursite.com/404error.html to your .htaccess file. Make sure you add your site URL where it says yoursite.com.
0.3Upload this file to your ftp program and make a page called 404error.html. On this page, you can have anything from just a back link to an error sign and text.
0.4You can make more error pages, not just error 404.
401 Authorization Required- You can password protect these pages.
403 Forbidden- You can ban ips using this or you can just make sure peopel can't access your folders on ftp.
500 Internal Server Error- These are server errors that happen sometimes.
For these pages just :
ErrorDocument 401 http://www.yoursite.com/401error.html
ErrorDocument 403 http://www.yoursite.com/403error.html
ErrorDocument 404 http://www.yoursite.com/404error.html
in your .htaccess file but make sure they are on seperate lines or it wont work.
Well done! You have created your own custom error pages!
I hope this Helped! Please link back if so!
Tutorial © Michelle @ Candy-Delight.net

