PDA

View Full Version : Creating Your Error Document File



6655380023
06-05-2009, 09:17 AM
What should go into your custom 404 File Not Found page? It is insufficient to simply let the visitor know that the file could not be found. In order not to lose that visitor, you will have to provide him some way to locate the document he wanted, or you would have lost him.

Web Design Services (http://www.intellixmedia.com/web-design.htm) page should have one or more of the following things: A link to your main page, with a suggestion that the visitor can find what he wants there. If you have a search engine for your website, you should definitely put a search box on that page. Many people prefer to simply type a query than to scan through your site map.
A link to your site map, which lists all the pages on your website. If you know of frequently mistyped URLs on your site, you can even put links to the correct location directly on the page, so that visitors who arrive there from outside can quickly get to the correct page. Remember, you don't want to lose that visitor, so do all you can to help him.

Any other navigational aids that you may have - for example, if you have a drop down navigation menu on your normal pages, you should probably put one here as well.

If you like, you can even put a simple form on the page to allow your visitors to inform you of the broken link. However, the primary aim of this page is not to help you track bad links, but to make sure your visitor does not leave your site if what he wants can be found there.

Incidentally, you should make your 404 page larger than 512 bytes, even when you are testing. Otherwise Internet Explorer (IE) will load what it calls its built-in "friendly HTTP error message" instead of your 404 page.

doria
09-16-2009, 03:40 AM
This document describes an easy way to provide your apache WWW server with a set of customized error messages which take advantage of Content Negotiation and eXtended Server Side Includes (XSSI) to return error messages generated by the server in the client's native language.

By using XSSI, all customized messages can share a homogenous and consistent style and layout, and maintenance work (changing images, changing links) is kept to a minimum because all layout information can be kept in a single file.
Error documents can be shared across different servers, or even hosts, because all varying information is inserted at the time the error document is returned on behalf of a failed request.

Content Negotiation then selects the appropriate language version of a particular error message text, honoring the language preferences passed in the client's request. (Users usually select their favorite languages in the preferences options menu of today's browsers). When an error document in the client's primary language version is unavailable, the secondary languages are tried or a default (fallback) version is used.

You have full flexibility in designing your error documents to your personal taste (or your company's conventions). For demonstration purposes, we present a simple generic error document scheme. For this hypothetic server, we assume that all error messages...

* possibly are served by different virtual hosts (different host name, different IP address, or different port) on the server machine,
* show a predefined company logo in the right top of the message (selectable by virtual host),
* print the error title first, followed by an explanatory text and (depending on the error context) help on how to resolve the error,
* have some kind of standardized background image,
* display an apache logo and a feedback email address at the bottom of the error message.
--------------
WI Health Insurance (http://www.competitivehealthinsurance.com/Wisconsin/)
swedish bathtub (http://www.classicclawfoottubs.com/57-cast-iron-swedish-slipper-clawfoot-tub.html)

denise
11-25-2009, 02:08 AM
A goverment web site which might help folks to provide information to consulting physicians as well as developing a list of questions to ask when they get to the physician's office. The list of questions can be developed between family/staff and the people with intellectual disability who are the patients.
-------------
Mortgage Introducers (http://www.themortgagebroker.co.uk/introducers.html)
retirement (http://governmentretirement.com)

romeo999
01-19-2010, 05:06 AM
Even if you do, you can still customize much of the server's behavior. It's easier than you might think. This tip will show you how to change your Web server to use a custom error page. You can serve a page that has your Website's look and feel, instead of the generic "404 - File Not Found" page.

Web servers are highly configurable applications whose behavior is controlled by a series of commands called server directives. Apache, the world's most popular Web server, supports about 200 of these directives.

Server directives are stored in a series of server configuration files. These files are controlled by your server administrator, and only he or she can change them. That's a good idea, since most directives are global; changing them changes the way the server works for everyone.

But some server directives control things that are local to each virtual host. You need a way to set these directives so that they apply only to your Web site and not to all sites running on the server.

Fortunately most Web servers let you do this through something called an ".htaccess" file (Notice the dot at the beginning of the file name - it's required). The .htaccess file is a text file that's placed in the domain root for your site; in other words, you put it in the same directory as your site's home page. You may have to create a fresh .htaccess file if there's not already one there.
________________________________________
Helichrysum Oil (http://www.florapathics.com/p-42-helichrysum-essential-oil.aspx)
Pasadena Skin Care Center (http://pasadenaskincarecenter.com)

Dam Ponting
12-09-2017, 05:10 AM
ErrorDocument 500 "Sorry, our script crashed. Oh dear"
ErrorDocument 500 /cgi-bin/crash-recover
ErrorDocument 500 http://error.example.com/server_error.html
ErrorDocument 404 /errors/not_found.html
ErrorDocument 401 /subscription/how_to_subscribe.html

manchun
12-11-2017, 04:43 PM
many document file is facing error for file extension

davidweb09
02-11-2018, 12:02 PM
When we done error in coding, it shows issues while opening that webpage.

praveenitech1
03-02-2018, 06:04 AM
This document describes an easy way to provide your apache WWW server with a set of customized error messages which take advantage of Content Negotiation and eXtended Server Side Includes (XSSI) to return error messages generated by the server in the client's native language.