Webmaster Papers




Google
 
Web webhostingpapers.com




/pagead2.googlesyndication.com/pagead/show_ads.js">

.htaccess to Mask Errors on Your Website


The .htaccess file is a control file located in your webservers directory. This file is a very powerful file that can control access to certain files, restrict access to files, forward people in the event of errors, and many more useful features for webmasters!

One of the most embarrassing things for a webmaster is to have a website with dead links, bad URLs, and error messages when the user surfs through your website. Using the .htaccess file you can help reduce how noticeable those errors are by quickly moving the user to a correct working location. This method of course doesn't correct the underlying problem with your website, however it does help to keep your website looking more professional.

Common error codes that you want to try to hide from the user:

400 - Bad Request
401 - Authorization Required
403 - Forbidden
404 - Page Not Found
500 - Internal Server Error
501 - Not Implemented

The biggest and most common error by far is the 404 Error (Page not found), but all of these can be embarrassing and troublesome to webmasters. If an error occurs on your website you don't want to lose that user. You may not be able to provide them with a link to the page they wanted, but you might get another chance if you redirect them to another page within your website.

Syntax for .htaccess file:

ErrorDocument ### index.php -- Example of format
ErrorDocument 404 /index.php -- Working example

In the second example, should a user request a page that no longer exists on your website, they will automatically have the index.php file loaded. This can be done for all of the error codes listed above and will help to hide and glaring mistakes in your website.

As I mentioned before, this is not a fix action for your website, but simply a mask. It's very important to review your website logs and look for error codes. The goal is to have a good working website afterall!

Ken Dennis
http://KenDennis-RSS.homeip.net/

RELATED ARTICLES


Keep Them Coming Back - Update Your Site
If you are anything like me, your website is a reflection of yourself. It contains your thoughts and communications, exposed to the entire world at all times. Look at virtually any non-commercial web site and you will get a glimpse at the person behind the monitor.
Building a One-page Website
You've designed your logo, and you're ready to print your business cards and other marketing collateral materials. You want to include your website address (also called a URL) to build your credibility. However, you're not quite ready to write and design a full website. At the same time, you don't think it's a good idea to distribute your new printed materials showing your website URL and to have only a blank web page waiting for your potential client's inquiries. What to do?
A Website Checklist
If you've just finished building your new website (or revamping your old one), how can you be sure it's "ready for prime time"? Or maybe your site's been around for awhile and you think it may be due for a makeover. Because Web technologies, techniques and standards change so rapidly, even a website that seems "cutting edge" when it's built can look obsolete a year later. Or maybe you started out with a barebones website and finally have the time and/or money to take it to the next level. If you'd to give your website the once over, here are ten aspects you should consider:
Cool Web Design And Promotion Tips
This article gives free tips on how to find a cheap website designer and free tips on website promotion services.
Database Driven Website
The solution lies in creating a 'Database driven website', through which web pages are created dynamically which further gives a web site visitor an up-to-dated view of information stored in the database. When the information in the database is updated, site visitors will immediately see the changes that have been made.
How to Create a Great Landing Page for Your Website
The landing page or entry page of your visitors is the most important page to your website. This page is likely to be your home page if you happen to be promoting your website url http://www.yourdomain.com more often than your other sub-directory pages as in http://www.yourdomain.com/sub-directory-page.
7 Benefits of HTML Validation
You may not bother with html validation or writing simple and clean code when designing your web site. Later you may find your site is slow loading, appears incorrectly in the main browsers and does not rank well for the major search engines.
Web Design: Use it to Showcase the Message
If you are designing a web site for which the achievement of high conversion rates is a priority, focus your design efforts on showcasing and highlighting the content and copy.
10 Things All Webmasters Should Know
Geared Up with a website and lots of energy to make a mark online? Spare some time and go through this. You'll be glad you did. If you don't already, this is something you MUST know!
How To Set Up A Professional Website On Your Own Using Web Templates
To create professional websites is not an easy task by any means. There are many things that you got to take into consideration like easy navigation, strategic links, clean coding, professional layout, easy downloading, scanability, usability and so on. These are the elements that differentiate a professional website from a mediocre one. So in a way it's not designing the website that counts but how the website is designed.
Dont Overdo it!
Have you ever been to site with so much ad clutter that you wanted to just leave? Odds are you have, and odds are even better that you did in fact leave! Always refer back to the KISS philosphy. Keep It Simple Stupid!
How to Get Your Visitors to Create Content for Your Website
An ongoing challenge for webmasters today is to provide fresh content that gives visitors a reason to return to their site. Unless you have a full-time staff dedicated to creating regular content, the time involved can be crippling.
How To Make It Easy For Your Web Designer To Build Your Website
You have an idea for a website and you are now looking for somebody to build you the site. You want it to be a smooth ride, and want to have a good working relationship with your web designer. You are also looking for a low cost website, so how will you make all of this possible?
The Next Marketing Tool: Deisgn
Design sells. It's something that all of us know, but few of us consciously acknowledge. There is an age old adage that warns people not to "judge books by their cover." In other words, we shouldn't judge people or products by their appearance. But this isn't true in America. We do judge books by their cover ? in fact we spend billions of dollars on products that have prettier "covers."
E-covers for Your Niche Market
When creating an e-cover the what's the first thought that comes to mind? How do I do it? What software do I need? How much will it cost? How quickly will I have it complete?
Concentrate On Web Content Instead Of Search Engine Optimization
For many webmasters the title of my article may seem like bad advice and contradict what most search engine experts say and advocate. However the proof is in the pudding. As a webmaster with 4 websites trust me when I tell you that I haven't got a clue how to optimize my web pages in order to be on the first page for a particular search phrase. Instead I work on adding new content to my web sites. This technique has allowed me to consistently earn 4 figures a month in additional income and usually I start making money within 3 weeks of making my websites.
404 Error - The Page Cannot be Found
A "404 Error" happens when the web server you are on cannot find the page that you requested. This type of error is quite common and is seen all over the place.
Website Maintenance: What Does it Take to Manage Your Website?
Every action has a beginning phase where you launch your activity, a middle period in which you must sustain and develop it and a conclusion. Many people set up a website enthusiastically but then they find that they don't have the skills or knowledge to maintain and develop it. So, what are the challenges in this middle phase of a website's life and how can you meet them?
Dont Lose The Sale In The Internets Last Three Feet
In retailing there is a saying that sales are made in the last three feet. What this means is that no matter what you have done with your marketing, the final purchase decision is made when a customer is in-store, with the product in front of them.
The Key to Getting More Magic Shows Booked Online
This article is the result of a conversation I had with a magician about his website. He wanted to know if I could build him a nice looking site that had his name and contact information on it. I explained to him the purpose of having a website and what you want visitors to do when they land on your site.