Custom Error Pages
Change what your visitors see when they get an error
Want neat error pages like This ? Follow the tutorial correctly and you'll have Some for your own website.
Step 1: Creating an error page file
Make a page named 404.shtml (you can name this 400, 401, 403, 404, or 500 depending on which error page you are creating. Put your headers, footers, css, and anything you put on regular page headers in there. Type anything you want. You can put images, scripts, etc. It's endless what you can put. Just remember that this is the page that people will go to when they come across a page that doesn't exist, so consider putting links on there like a link back to hour homepage for instance. When you're done, upload it to your main directory.
Step 2: Creating a .htaccess
Open a new document and paste this code into it
Save this file as htaccess.txt. You can add as many of the error pages as you want in this file, depending on which ones you have created. Be sure to change the '404' part if you're making a different error page! Upload your htaccess.txt file to your main directory. Once it's uploaded, right click it and click Rename. Rename it to .htaccess EXACTLY.
You're done! Test it out by going to some nonexistant page on your site.
Questions? Submit them here!
Step 1: Creating an error page file
Make a page named 404.shtml (you can name this 400, 401, 403, 404, or 500 depending on which error page you are creating. Put your headers, footers, css, and anything you put on regular page headers in there. Type anything you want. You can put images, scripts, etc. It's endless what you can put. Just remember that this is the page that people will go to when they come across a page that doesn't exist, so consider putting links on there like a link back to hour homepage for instance. When you're done, upload it to your main directory.
Step 2: Creating a .htaccess
Open a new document and paste this code into it
Save this file as htaccess.txt. You can add as many of the error pages as you want in this file, depending on which ones you have created. Be sure to change the '404' part if you're making a different error page! Upload your htaccess.txt file to your main directory. Once it's uploaded, right click it and click Rename. Rename it to .htaccess EXACTLY.
You're done! Test it out by going to some nonexistant page on your site.
Questions? Submit them here!


