Go Back   Webmaster Forums UK SEO SEM Webmaster Community Forum - UKWW > General > General Webmaster Talk
Register FAQ Members List Downloads Calendar Today's Posts Webmaster Resources Webmaster Blogs
 
 

General Webmaster Talk General webmaster discussion forums - In this forum and its sub forums you can discuss general webmaster related issues or even issues that does not related to Webmastering.
Sub Forums: Running a forum :: Blogs and Blogging :: Word Press Forums :: Digital Photography

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-26-2005, 02:33 PM
ovi
Guest
 
Posts: n/a
Default The Secret of Custom Error Pages

These broken links lose you visitors and cost you money.

Often what happens is you delete or move a page, and then forget to update some of the other pages on your site that link to it, or other sites such as search engines still display links to the old URL.

When a surfer clicks on one of these links, the server runs off to grab the page as usual, but on finding nothing there sends a "page not found" server error 404 to the Web browser.

Why The Standard Solution Sucks

A server's standard error page is plain ugly. But worse than that it leaves the surfer stranded at a dead-end. Their only options are to hit the back button, or close the window.

You've just lost a potential customer!

But it doesn't have to be that way ...

Creating Custom Error Pages

Many web hosts now offer the option of creating your own custom error pages for this and other common server errors through a simple online control panel. If your host provides this function, take advantage of it right away.

All it involves is selecting another page of your own design that the server will look for when there is an error, instead of displaying its standard error page.

We'll go into the details of what you might want to put on this page later.

For now, just log-in to your website's online file manager and make a copy of your site index file, saving it as "404.html" in the same directory (or copy the file on your PC and then upload it).

In your control panel options, look for "error pages" and choose 404.html as the file to be displayed whenever a requested page cannot be found. (You could just select your existing index.html as the error page, but I suggest you make a new page - you'll see why later).

Now every time a page isn't found, instead of seeing the unhelpful error page, the surfer will automatically be sent to this copy of your homepage.

Making A Custom Error Page Manually

If you don't have a control panel, you can set-up your error page manually. First of all, make a copy of your website homepage on your PC and save it as "404.html".

Next you need to create or edit a special file named ".htaccess" stored in your site's root directory.

Log-in to your server via FTP and check if there is already a .htaccess file in your root directory (where all your web pages and folders are, e.g., "www" or "html_docs").

You may need to adjust the settings of your FTP software so that it shows you hidden files on the server (i.e., those that begin with a period, "."), so you don't accidentally overwrite an existing .htaccess file, deleting its contents.

Beware: overwriting an existing .htaccess file could make your website inaccessible! Although seldom the case, your host may have put some critical information inside.

Likewise, if there is already a .htaccess file there, do NOT delete it. Download it to your PC, make a back-up copy, and then open it in a plain text editor (like Notepad). Add the following command on a new line below whatever else is in the file and then save it:

ErrorDocument 404 /404.html

This tells the server to show "404.html" as its error page (what the control panel does is automatically add this line to the file for you).

If there isn't already a .htaccess there, create a new plain text file on your PC and paste the above into it. Save the file as "htaccess" (or ".htaccess" if your PC displays file names that start with a period).

FTP both this file and the 404.html page you just saved to your website root. If you upload the file as "htaccess" you will need to use your FTP software to rename it as ".htaccess" on the server.

Now you have created your custom error page, test it by typing an URL to a page on your site with a mistake in it. You should be instantly redirected to your new 404.html page.

If you get a server error, it means you've made a mistake in your .htaccess file. Revert to your backup copy and then check to make sure you've not added any characters or spaces that shouldn't be there.

Once you have this working, you can use the same method to create custom pages for other server errors. These are the most common, with the relevant .htaccess commands in brackets:

(ErrorDocument 405 /405.html)
(ErrorDocument 404 /404.html)
(ErrorDocument 403 /403.html)
(ErrorDocument 401 /401.html)

In part two of this article, I'll be showing you how you can get more from your custom error pages, plus revealing secret ways you can actually PROFIT from them! There's a ton of great stuff covered, so don't miss it.
Digg this Post!Add Post to del.icio.usStumble this Post!Wong this Post!
Reply With Quote
Reply

Bookmarks



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Webmaster Resources
UK WW SEO Tools
Find UK Hosts
 
The Forum Rules
Forum Rules - MUST READ
 
Site Of the Month
BizzFace
Nominate site of the month
 
Tag Cloud
43. wholesale adsense ready apple iphone 16gb apple iphone 16gb 3g articles article writer australia web hosting beauty cash casino cheap clothes communications content custard media database dgital camerals domain name english teacher fantasy football fantasy football league fittness football league free handbags home income instant jewelry links link sale medical health money money making online music natural health news nokia n96 16gb one way links online online shop poker professor quality links replica sam allcock seo social networking sony vaio laptop sunglasses technology the medical plus themes tutor verbalized wallet wallets wanted web hosting widget ready wordpress xmas offer

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Secret Behind Bid Directorys RiverWire Directories 2 08-08-2007 02:37 PM
The, 'Secret' to success Paul_KY Generating revenue from your website 8 06-15-2005 07:25 AM
Advertising on Error Pages Duke Generating revenue from your website 29 05-18-2005 06:12 AM
Error Pages Duke General Webmaster Talk 3 03-28-2005 02:10 PM
Do you customize your Error pages? novocaine General Webmaster Talk 8 12-10-2004 10:21 AM


All times are GMT. The time now is 08:24 AM.

UK Webmaster World Forums - Internet marketing, web development, domain names, SEO contest and discussuons.
Subscribe to our feeds   Subscribe to our feeds

Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0