.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/
|
|
|
Created & Maintained by Empower! CMS Web Sites
Host2Sell Web Hosting | Emarketing Workshops | Site SEO Review | FREE NewsletterBe Friendly To Search Engines
The object of search engines is to give their visitors a list of web pages relevant to the search words, in the order of relevance to the search words. So what do they want from websites?Relevance to a search:
- The frequency of the search word on a web page is an indicator of its relevance.If a web page contains the word ten times on the page, it is ten times more relevant than a page which contains the wor...(related: Web Design)
Website Sales: Discover 10 Mesmerizing Insider?s Tricks To Ignite Your Sales
Marketing is not an easy skill to acquire.It requires patience and a lot of efforts in conducting many tests and improvement to get it right.Below are 10 mesmerizing website sales tricks to spark up your sales and put a smile on your face.1. Specialize your product or service if you have toomuch competition. If you're selling an advertising book,rewrite part of it and target it just to pet businesses.2. Sell a lead in product for super cheap, even ifyou loose a little money. If people like it, you havea greater chance to sell your higher price product.3. Give people a...(related: Web Design)
Long Copy Sales Letters On The Web: Hype Or Not?
I have written before about long sales copy on the web. But I have more to say on the subject.
First, let me be clear about what I'm saying here. I'm not talking about long content pages within dozens of other pages on a site. I'm talking about stand-alone pages...a long, direct response sales letter online, often with its own domain name.
Next, let me say this: long copy works, online and offline.
If you can hold someone's attention with your writing, a long page gi...(related: Web Design)
Quality Website Design At An Affordable Price
I always have people asking me if I know of anybody who can build them a website which is affordable but also professional looking. They want the website to be search engine friendly, there is no point in having a website if no one can see it, and fully optimised.I am sure there are many people looking for something similar. In my opinion you should not have to spend a lot of money for such a service.With such a lot of people now offering web design and optimisation services in the UK, there are bound to be some good deals to be found. In reality you should be able to have your website built for between £50 and £100.The question is where do you find these great deals?These are the ar...(related: Web Design)
The Brutal Truth
Not too long ago while looking for businesses that do web design I stumbled upon website. It looked great. It had cool pictures arranged in a grid. But I couldn't figure out what to do next. So I moused over one of the pictures. Nothing happened. I moused over another picture. This time some w...(related: Web Design)
Your Graphics- Are They Really Working For You?
(Making Your Graphics Work For You)It's no secret that a picture is worth a thousand words or that people really do judge a book by its cover. Effectively using graphic headers, e-covers and background graphics can send your profits soaring. Amateur looking graphics are worse than no graphics at all.The graphics you use on your website should intensify the screen's message. Correctly used graphics will activate the prospects emotions into a buying mode. This can be effectively accomplished by incorporating a few simple marketing strategies into your graphic designs.For example, when choosing the color of your graphics don't simply choose your favorite color. Identify your niche market and target the color scheme of your graphics to that market. Let's use a gardening site as an example. You wouldn't want...(related: Web Design)
Becoming A Website Designer
The ability to create simple, attractive and functional webpages is a highly marketable skill. There is a huge and growing demand for websites and web content, especiallyfor smaller organizations who often can't afford to hirea fu...(related: Web Design)
Power Of Squeeze Pages For Realtors
Squeeze pages are a very hot topic in the internet marketing scene. What a squeeze page is is a page that is built to get ...(related: Web Design)
Get Rid Of Your Frames
A few years ago a lot of websites utilized frame technology.A website that uses this frame technology is apparent when the left hand or top of the screen stays the same and the inner part changes when links are clicked on. The main URL address always stays the same no mat...(related: Web Design)
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 tha...(related: Web Design)
site-map - Copyright © 2006 Empower! Web Design | All Rights Reserved. | Web Design
