WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDES  |  PHP CLASSES  |  CODE SEARCH  |  ARTICLES SEARCH  |  PHP FORUMS  |  PHP MANUAL  |  PHP FUNCTIONS LIST  |  WEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Submit Your Code
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
WeberDev's Monthly code contest PHP Code Contest
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Index
PHP Web Logs (BLogs)
Web Development Resources
Web Development Content
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
Submit Site
Forex Trading Online forex trading platform

Go Back Add a Comment Send this Article to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES SUBMIT AN ARTICLE PRINT
Title : Implementing Sensible 404 Pages With Apache
Categories : Apache, Web Servers, HTTP
devarticles
devarticles
Date : 2002-05-02
Grade : 0 of 5 (graded 0 times)
Viewed : 1724
Search : More Articles by devarticles
Action : Grade This Article
Tools : My Favotite Articles


  Submit your own code examples 
 


Introduction

'HTTP 404 Not Found' reads the title.
'The page cannot be found' reads the heading on the page.

It's not pretty, or even clever. As web surfers, we have all collided with 404 error pages, and some endeavour to correct the error be checking the URL for stupid mistakes that often happen. If we find we have not mistyped the URL, we probably close our browser or fly off to another site, never to return again. As Edgar Allan Poe wrote, "Nevermore!" This is a major problem for fellow webmasters.

The thing about default 404 error pages is they often give only the error code and a short description, and if you were oblivious to the web site you were attempting to visit, the page reveals very little about the site, or a link to the home page so you can start again. Many webmasters circumvent this issue with what’s known as custom error pages. These are pages that the Webmaster creates to his or her liking, with the company logo intact and any dialog or links deemed appropriate. Other common error documents include 500 Internal Server Error, 403 Forbidden and 401 Authorization required.

This article refers to the most often-hit error document on the Internet, the infamous 404 Page Not Found error. This error occurs when a user requests a page from a web server that does not physically exist (the page, that is). The most common culprit is a misspelled page extension or link, along with deleting a page from the server without updating any corresponding links to that page. Although many sites now rely on dynamic database content to generate their pages, these sites too still have room for 404 errors to occur without the webmaster even knowing it.

Let us take a look at creating an effective 404 Page Not Found error document, how to keep more of our visitors happy, and, most importantly, coming back to our site.

Read More...









Handling 404 Error's With Apache
Categories : Apache, Web Servers
Using ForceType For Nicer Page URLs
Categories : Apache, URLs, Web Servers
Authentication 101
Categories : Apache, Web Servers, Authentication
User Authentication With Apache and PHP
Categories : PHP, Web Servers, Apache, Authentication
Installing Apache With SSL: The Complete Guide
Categories : Web Servers, Apache
Referer Statistics
Categories : PHP, MySQL, HTTP, Databases
Installing PHP Under Xitami
Categories : PHP, Web Servers, Xitami
Setup and Install Apache with PHP4 as a Dynamic Module (DSO)
Categories : PHP, PHP Configuration, Apache
Setup and Install Apache and PHP4 on Windows
Categories : PHP, PHP Configuration, Apache, Windows 2000
Send SMS Thru HTTP
Categories : PHP, SMS, HTTP
Installing PHP Under Personal Web Server
Categories : Personal Web Server (PWS), PHP, Web Servers, Installation
Installing Apache Web Server and PHP 4 on Linux
Categories : PHP, Web Browsers, Apache, Linux
Apache, PHP, and PostgreSQL on RedHat Linux
Categories : Apache, PHP, Databases, PostgreSQL, Linux
Ten Things to Do With IIS
Categories : Web Servers, Windows 2000, IIS
Protecting PHP Scripts with HTTP Authorization
Categories : PHP, HTTP, Security, Authentication