Search
Recommended Sites
Related Links

 





   

Informative Articles

5 Tips For A Better Website
Having an eye catching website is great, but are you optimizing your website to allow the best performance possible? I receive several emails a day from clients asking how they can get more hits to their websites, what can be done to increase...

CSS Print Media Tutorial
The power of print + CSS So you've made yourself a cutting edge web page. What next ? Well maybe you want your visitors to be able to print pages in a certain style. Heavy graphical content can be removed, background colour changed and navigation...

Design Your Own Website - My Easy Five Step Formula For Creating Successful Websites.
For me to demonstrate this, I will lead off with a little story, dating back a couple years. Two years ago, when I first started online, my biggest nightmare was trying to figure out what program to use to build my websites, and which hosting...

How to Design a PopUp Window to Boost Opt-Ins
I get many emails a month from people asking how to go about designing a popup window to extract the maximum number of opt-ins from visitors to their web site. In this article I outline the seven essential steps you should take in your design of a...

The Three Principles Of HTML Code Optimization
Just like spring cleaning a house, the html code of your web pages should get periodic cleaning as well. Over time, as changes and updates are made to a web page, the code can become littered with unnecessary clutter, slowing down page load times...

 
404 Error Pages-What are they and how do you create one?




We've all seen them, you've been browsing a website and you click a link and nothing loads apart from the words '404 Error' along with the usual stuff.


So what is a 404 Error page? The 404 Error page, basically informs the user that the server cannot find the file they are looking for. However, instead of using the default 404 Error page you can create your own, this is how you do it.


First, you need your .htaccess file which should be within your web site directory. If you cannot find it you will need to create one. You will have to contact your host asking them how you would go about creating or editing this file. They may want you to use a text editor and then upload it, or they may want you to use a PICO editor and create or edit the file on the server.


How you have access to the .htaccess file lets edit it. Add this line to the .htaccess file:


ErrorDocument 404 http://www.yourdomain.com/404page.html


Make sure this line is kept on online. This is where your 404 Error page is kept.


Now you've change the .htaccess file you need to create the page. This is simply a normal HTML document. Once you've created the HTML document, save it and call it 404page.html. Now the next step is to upload the .htaccess file and the page to the server.


Now that is done your next step is to turn it on. This is done by setting the CHMOD attribute to 644. You can do this via telnet or some FTP programs. If your going to telnet into your server, use the following command:


chmod 644 .htaccess


Now test to see if it's worked. Just go to a page that doesn't exist on your server and you should see your new 404 Error page. If not, then make sure the CHMOD is set correctly, and if that doesn't help, you may want to ask your hosting company for support.






I currently own and run a small E-commerce template website located at http://www.sjh-designs.co.uk. You can find several more guides located at http://www.sjh-designs.co.uk/guides.htm.