Custom Error Pages

Want neat looking 404 error pages? 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


Step 3: Saving the correct page
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!

Step 4: Uploading & Renaming
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 non-existent page on your site.

Back | Home | Forward

Introduction
Welcome to the tutorials section of my site. Currently there are 4 tutorials that I offer. More will be added over time so check back often.


Search Tutorials


   Jump to top ↑  Design and Content © 2006-2012 Amber Luckey    Powered by Wordpress   CSS Valid Valid CSS   HTML Valid Valid XHTML     RSS Feed RSS Feed