Main Menu
Articles Home
Most Popular Articles
Top Authors
Submit Articles
Submission Guidelines
Link to Us
Bookmark
Contact Us

Articles Categories
  ·  Audio-Video Streaming
  ·  Blogging
  ·  Broadband
  ·  Domain Names
  ·  E-Business
  ·  New to the Internet
  ·  Spam
  ·  Technologies
  ·  Tools and Resources
  ·  Web Design
  ·  Web Development
  ·  Web Hosting
  ·  Webmasters
 


Partners
 
Home / Internet / Web Design

Customize those error pages!

By:James Morris


Let me ask you this question. How many times have you made changes to the page structure of your site? Ten times? 100 times? 1000 times? If you have a large site, the number of changes can grow rapidly. This is especially true if you deal with dynamic sites that are driven by a complex scripting language and a database.



Now let me ask you one more question. How many times have you "fat fingered" the keyboard when typing code? I cannot speak for anyone else, but I do it all the time. Now, what happens when you are coding hundreds or thousands of lines of code? Are you going to catch that one little mistake, or are your clients going to catch it?



So, what happens when a link is no longer active on your site, or when you "fat finger" while typing your code and a link cannot be found? Error pages are generated. The most common of these is the 404 error. This error is generated by your web server software to let the end user know that it cannot find the file specified. The big issue here is that this page does not include a link back to your site. And unless you are the server administrator, it may not include your email address, in which case the end user cannot notify you of the dead link.



There is a new trend among hosting providers to capitalize on your dead links. That's right. They are making money from pages that don't exist on your site! You might think this concept is silly, but I assure you, there is big money in error pages. Just think about how many times a day end-users might "fat finger" typing in URLs. Let's just say it happens 1,000 times per day (and I'm probably being conservative here). Now multiply that by an average of $0.10 per click for the credit the host receives when the end-user starts browsing their "convenience page". If you are quick at math, you figured out that that equals $100 per day! Now, if you take into consideration the size of the Internet and start scaling this figure accordingly, you can easily see where this is a seven-figure industry.



What can you do about this? How can you stop your web host from profiting from your visitors without your permission? How can you start getting a piece of this very lucrative pie? The answer is really quite simple.



Most web hosting providers will allow you to customize at least a minimal subset of the configuration parameters of the web server for your hosting account. I'm going to show you exactly how to do this for Apache, the most common web server application on the Internet. Similar steps can be taken for IIS or any other web server application, but I trust that you can use Google™ to find those specific commands.



Ok, the first thing you want to do is come up with a template for your error pages. I suggest you use the basic layout of your site so you can maintain a sense of consistency.



Next, you will need to decide what content to display on the page. You should let your visitors know that they have stumbled across a dead link, but you also want to provide a streamlined method for them to find their way back to your site. I recommend using the appropriate error message in the page title and at the beginning of the page using h1 tags. You should append a description of the error message to your page title and display this description using h2 tags in your page.



Example:



<html>

<head>

<title>Error 404: The page you are looking for was not found</title>

</head>

<body>

<h1>Error 404</h1>

</h2>The page you are looking for was not found. Please check the URL and try again.</h2>

</body>

</html>



Now you need to provide a easy "one-click" path to your website. This can be accomplished using a simple text link in the page footer.



Example:



<html>

<head>

<title>Error 404: The page you are looking for was not found</title>

</head>

<body>

<h1>Error 404</h1>

</h2>The page you are looking for was not found. Please check the URL and try again.</h2>

To return to the [Company Name] homepage, click <a href="http://yourdomain.com">here</a>.

</body>

</html>



Now, upload your template as error404.html to your website's root directory (usually public_html).



To get the above template to function correctly when a user comes across an invalid link, all you need to do is create a .htaccess file, using your favorite plain text editor, with the following line in it and place it in the root directory (usually public_html) of your website.



ErrorDocument 404 http://yourdomain.com/error404.html



For each error type you wish to provide a custom page for, simply repeat the above steps, adjusting the file name and ErrorDocument statement appropriately. To gather a complete list of server response codes, search Google™ for "Apache error codes". (Adjust as needed for your server software.)



As you can see, this process is extremely simple and only takes about five minutes. If you are good with HTML and you have a Google AdSense™ account and other affiliate accounts, you can easily customize your template to include your AdSense™ search box and your affiliate links. If you are really savvy, you can use a free script like CaRP (RSS to HTML converter) to provide relevant content on your error pages and further enhance the likelihood of driving the end-user to your site.



Of course, if you are not that good with HTML but still want to retain your customers, there is hope. I've created a very clean template that does all of the above for you. All you have to do is update a few variables in the code and you are ready to go. Simply go to my site and search for MyErrorPages. It's a free script that you are welcome to use on as many sites as you like.



Now that you see how easy it is to customize your error pages and retain your valuable visitors, what are you doing here still? Customize those error pages!



Digg del.icio.us Blink Stumble Spurl Reddit Netscape Furl

Article keywords: custom error pages, webmaster tutorials, .htaccess tutorials, 404 error, 403 error, 500 error, custom apache error, webmaster resources, webmaster articles

Article Source: http://www.articles2k.com

James Morris is the Co-Owner and Webmaster of MyWebResource: A comprehensive resource site for webmasters, including webmaster articles, webmaster tools, free downloads, and more.


Article published using Article Submitter courtesy of:MyWebResource









Top Web Design Articles
  • 1). Advanced Joomla Templating (pt1) Using Module Class Suffix  By : Robert Palmer
    an article from User Written Resources 1. duplicate the styles already used for the particular module, adding a suffix to each style name. this will definitely include some of the following; 1. .module {} 2. div.moduletable {} 3. div.moduletable h3 {} 4. table.moduletable {}/li> 5. table.moduletable th 6. table.moduletable td and can include other styles used on the content in that section, such as; 1.

  • 2). Irish Graphic Design Industry  By : dave4
    Graphic design is the use of color, light, balance, contrast, emphasis, proportion, proximity, repetition, texture and a plethora of other elements to create a work of digital art that is pleasing to the eye. Graphic design is about seamlessly molding image and text to convey a theme, message, or often advertise a product or service. Graphic design dates back to prehistoric times.

  • 3). Adsense: The Smart Investment  By : Pat Lovell & Jon Atwood
    Over the last 2 years, We have been building a Virtual Adsense Empire of over 500 websites and making some good money. We've also been building content sites for clients using the same system. The system we use is not something that produces 1000's of sites with a click of a button, our system does not build spam websites, nor does it produce the same sites you see over and over and over again.

  • 4). Some guidelines for Website Design  By : Angela Oliver
    You have a great product. You also have a great company image and marketing model. Now it is time to implement all your plans and bring together a website. You know very little about websites. Finding websites that have failed is easier than shooting fish in a barrel. Many people come into the internet business with the notion that if they are on the web, they are guaranteed to make money.

  • 6). Develop Your Business Web Site for Profits  By : Jay Peterson
    Looking into developing your business web site? Whether creating a business web site to sell your business products online or just to give the public valuable information, creating a business web site can be an important first step to creating an important presence on the web. Here are some tips on creating a business web site as well as what is involved in getting your business web site off the ground.

  • 7). Is your printing costs sky rocketing?  By : Florie Lyn Masarate
    Here are some things you can do to be able to lower your printing costs. 1. Cheap but good quality printer. There was a time when only a handful of people can afford having one of those colored and digital printers. Now that these things are more rampant, they have become more affordable. Color printers of good quality are even inexpensive already.

  • 8). Creating A Quality Web Site Design!  By : Martin Lemieux
    In this article, I will attempt to cover the basics of creating a great quality web design template for your site. Now it's a known fact that the layout or "eye candy" as I put it will determine whether your visitors will stay more than 15 seconds or they will just become another statistic. In this article, I will attempt to cover the basics of creating a great quality web design template for your site.

  • 9). How Does Your Website Make Me Feel?  By : Philippa Gamse
    When people think about the Internet, they think about technology. When people hear that I am a Website strategy expert, they see me as a "techy type". But for me, the most intriguing aspect of your online business isn't about the technology. It's about human connections, and how you can create these in a virtual environment. It's commonly understood that "people buy emotionally, not intellectually.

  • 10). For Automated Sites - PHP and MySQL Are A Perfect Match  By : Halstatt Pires
    You’ve decided to automate your web site. Now what? Here are some ideas to help you choose how to automate your site. A bit of programming is going to be necessary if you want to automate a site. There are many types of programs that can be used to automate a web site including JavaScript, PHP, Perl, ASP, Java and more. So, which do you use? For many, it is a personal choice.


New Web Design Articles
  • 7). Graphic Artists - Who Needs One When You Can Do It Yourself Online?  By : Pearl Deloria
    Image is everything! Think about it. How many times have you made a judgment about a company based on the quality of the junk mail that you have been sent? Other people make similar judgements, too. Businesses cannot afford to be thought of as cheapskate in their marketing. You know that most of your mail goes straight in the trash, and it may grieve you to spend four times the amount, just for it to be thrown away.

  • 8). How To Style Your Text With CSS  By : Hilco van der Meer
    Styling text with CSS is really simple. We can define colors, underline it, make it bold, define the font etc etc. We will start with some basics. First we define the html where we will be working with. This is the text 1. Colorize your text We can select the P tag and add some styles to it. p { color:red; } Now our text will turn red. You can define any color code your want or choose one of the 16 standard color names.

  • 9). What is a web designer anyway?  By : Alicia Harper
    As a web designer, I get all kinds of requests , for information other than web design, and as a web designer I'm not suppose to really to be able to do things outside of the web design area. I believe there are a few misconceptions about what exactly a web designer does. In this article I am going to nail down exactly what a web designer is and what they should be able to do.

  • 10). Advanced Joomla Templating (pt1) Using Module Class Suffix  By : Robert Palmer
    an article from User Written Resources 1. duplicate the styles already used for the particular module, adding a suffix to each style name. this will definitely include some of the following; 1. .module {} 2. div.moduletable {} 3. div.moduletable h3 {} 4. table.moduletable {}/li> 5. table.moduletable th 6. table.moduletable td and can include other styles used on the content in that section, such as; 1.



 


© 2006 articles2k.com - Privacy Policy