Error Documents

This item was filled under [ Web Server ]

Thanks for visiting! If you're new here, you may want to subscribe to my Rss Feed. This blog posts regular Internet news, updates for apps, security, ideas, hacks, quick fixes and everything about hi-tech. Go ahead, Subscribe to our Feed or Register for Free!

404.jpg

These are very useful and allow you to specify a page that the user goes to if there is an error. The most useful way you could use this is with the “404 Page Not Found” error. You can provide the user a list of common links, a link to your homepage, an e-mail address or whatever you feel like!


You create this in the . htaccess file by including the following command, replacing the value in [square brackets]:

ErrorDocument [number] [path to document location]

So, for example, the Olate 404 page is done like this:

ErrorDocument 404 /errors/404.php

Instead of directing users to a page, you can display some HTML instead:

ErrorDocument 404 "Page Not Found

Return to the homepage

Popularity: 217 reading
Tagged with: [ , , ]
If you like this entry, consider bookmarking or help us promote it. Thank You!
Interesting Articles:

Related post to "Error Documents"

You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Comment