Webmaster Tutorials - Web Design
Webmaster Resource Directory | Contact Us | Submit Your Site

LEARN

BUILD

PROMOTE

SELL

MANAGE

GET LISTED



.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/


More Web Design Articles

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.

Essential Strategies To Make Your Web Copy Attractive To Your Target Audience
Reading on the web is different than reading in all other formats. People approach it differently and you need to have strategies that capitalize on those differences so you can connect with your prospects.

Optimized Web Page Template
I want to give you a free web page template that will be search engine friendly. Why?Well, I assume you want your web page to come up as high as possible in search engines because that generates free traffic.

Cascading Style Sheets for Better Web Design
In cascading style sheets you can specify how your web pages will be presented on the screen by simply predefining page elements such as fonts, headers and links.You can add these predefined elements in the head-section of your pages, but more interesting is to use them in a single .

How To Increase Your Conversion Rate or What Most People Miss When It Comes To Optimization
Everybody talks about the importance of testing your sales copy or a page layout. After all, proper testing can help you modify your page in a way that will drastically increase your conversion rate.

Designing Your Websites Directory Structure
Any kid, and their grandmother too, can make a webpage. There are many "wysiwyg" webpage design applications that let you create a webpage as easy as typing text.

Tips for Getting More Sales From Your Website
(1) Create a Direct Response Website, with the minimum number of pages possible (e.g.

Want to Increase Your Online Sales? Make Sure That Your Web Site Has a Unique Selling Proposition
If you own a web site or if you are going to build a new one, the most important thing about your site is to achieve as high as possible visitors to sales conversion rate.Although they say that "the traffic is king online", if your website converts poorly, your online business will fail, unless you receive tons of free traffic which I doubt.

Use Feng Shui Techniques To Design a Harmonic Website For Your Business
By following feng shui guidelines and techniques, you can build and design a business website that is not only visually attractive but also attractive to wealth and prosperity. The elements that are part of a business website are somehow equivalent to the objects distributed through a working space since the website is the electronic version of the actual business' offices.

Wording Up Your Website
Back to basics. Forget funky design, good copywriting is the key to a clear and intuitive website.




Helpful Tools

NetDownload
freeware and software downloads

Findahost
web hosting directory

FindaTechJob
new computer jobs daily

ManagedHostingPro
Managed Hosting and Colocation



© 2007 webmasteredge.com