404 Error Page Script
Contents |
- sql HTML & Graphics Tutorials getting started backgrounds buttons browser specific colors forms frames html 4.01 tags html 4.01 ref image maps tables web graphics Beyond HTML asp cascading style sheets css keyword ref cgi scripting developer research center dhtml/layers dot net java 404 error page template applets javascript javascript frameworks javascript keyword ref javascript script tips mobile web development open source google 404 error page cms php security SEO vb script keyword ref webmaster tips webmaster projects webmaster toolbox video xml general reference pieces the master list Need 404 error page not found Help? discussion boards mentors Post a comment Email Article Print Article Share Articles Reddit Facebook Twitter del.icio.us Digg Slashdot DZone StumbleUpon FriendFeed Furl Newsvine Google LinkedIn MySpace Technorati YahooBuzz How Do I Create a Custom 404 Error Page?
Funny 404 Error Page
By Joe Burns Tweet Ah, the aggravating 404 error page. You've seen it. There you are, surfing in your favorite search engine when you happen upon just the thing you're looking for. You click: (***Raspberry Sound Effect***) Nothing but a white page with the words "404 Error" and some other techie-sounding speak beneath. What's even more cheesy about the error code is that it really doesn't tell you what the problem is. Basically you've been informed that 404 error page design the server cannot find what you want. It doesn't tell you why, how to fix it, or where to go from that point. You really don't have much choice but to hit your BACK button, call the computer a dirty name, and try again. But then you see it--a server that's set up with its own special 404 error page that politely apologizes and offers you links to e-mail site administrators and maybe a site search engine. Now that's class! So I waltzed into the office of the Webmaster at work and asked how it was done. I was stunned at how easy it is to set up. Want one of your own? Here's how. You'd Best Ask First I'm going to offer you a very basic fix to this problem, but you'd best ask your system people if they want you doing this first. Better yet, ask them if you might mess things up by doing this. Your .htaccess File This is the file that will do the trick for you. You should already have one waiting inside of your Web site directory. If you don't, then you'll need to create it. FTP into your server so you're looking at the top level directory where you store your Web page files. This should be the directory that contains your home page document. Look for the .htaccess file t
Was it the website? What do you do now? Article Continues Below 57 comments Share this on Translations Italian Russian Welcome to the world of the Error 404 page. You’ve requested a 404 error page examples page — either by typing a URL directly into the address bar or clicking on
404 Error Page Html
an out-of-date link and you’ve found yourself in the middle of cyberspace nowhere. A user-friendly website will give you a helping hand
404 Error Page Game
while many others will simply do nothing, relying on the browser’s built-in ability to explain what the problem is. We can do better than that, can’t we? I won’t go into details about how you set your http://www.htmlgoodies.com/beyond/reference/article.php/3472591/How-Do-I-Create-a-Custom-404-Error-Page.htm server up to deliver a custom 404 page — instead, I’ll refer you to these articles: Creating a Custom 404 Error Page (4 Guys From Rolla) Creating Custom Error Messages in Apache (4WebHelp) I will, however, suggest strategies for building a custom 404 page that makes the most of an otherwise lost cause. To get started, we need to examine the most common reasons that people find themselves on a 404 page: a mis-typed http://alistapart.com/article/perfect404 URL (or an out-of-date bookmark/favourite) a search-engine link that is out-of-date an internal broken link that the webmaster hasn’t noticed They all amount to the same thing, but they need to be handled slightly differently — the 404 message needs to be customized for each eventuality. There are some tricks that you can employ that apply to all scenarios, but my first suggestion is simple… Don’t point the finger Tell them what went wrong, by all means, but don’t admonish the user, even if you know it’s their fault! The phrases, “might have” and “possibly” are good ones to use here. Don’t get off on the wrong foot with this visitor to your site — you might yet turn this problem around. 404 Must-haves As well as the “something went wrong” text, you should ensure that your error page has the following: A link to the site map (if you have one) and the home page. This is the easiest way for users to bail out. This no-brainer requires no clever scripting. A search box. If you have a site search, add it to your 404 page. If you don’t have a site search and are in the habit of generating 404 errors, perhaps you should get one. A distinctly minimalist look. Avoid putting all your standard site nav
Lake Class, snow, etc HTML Generator Basic CSS HTML Code Generator CSS Tutorial External Style Sheet Tutorial CSS Template HTML CSS Tableless 3 Column Layout Plans IBDhost RatesPlans HOA or NA Association Design Rules For Web Sites Demo Page http://www.ibdhost.com/errors/ PHP templates and photo album Custom 404 PHP Code for Custom 404 (Current) Contact Form Free http://www.parkansky.com/tutorials/404alert.htm PHP Contact Us Form Code Optimize Images For Web Page Sites Thumbnail Tutorial Creating Thumbnails for Web Sites PHP Template Free PHP Tutorial Newsletter Template Free Template HTML Basic Basic HTML Web Page Code URL Paths Absolute vs. Relative Path Submit Sites to Search Engines Calculate Bandwidth Calculator for Monthly Usage Register Domain Tutorial (Godaddy) Mail Help Outlook Express Email Setup FTP Help WS-FTP LE 404 error Setup Help Domain Sign Up Now Initial Setup Startup n Setup Instructions Featured Sites Hosting Client Sites Specials IBDhost Hosting Specials TOS Terms of Service (TOS) Contact Us Email Contact Form Tutorial Home Page Free Host (friends) Little Rock Arkansas © 2004-2013 Creating a Dynamic Custom 404 Error Page or an Index File to Block Folder Listing Just another example, of why server side scripts (such as .php) are more powerful (when compared to a plain .html page 404 error page :) This tutorial explains how to make a Custom 404 Error Page based on a html / .php script. Actually, there are two types of pages that are suited for this example. Custom 404 (page not found) Error Page: Where it can be used to determine when someone enters the wrong URL or when they follow a 'bad / obsolete' link to the site. Note: Internet Explorer, IE browser will not display custom error page if the page is small i.e. if IE does not show the custom error page - increase the page size. Index.php Page to Block Listing of Folders: Actually the php / html page will block the listing of files and/or subfolders -- such as an attempt to list the files in a folder that does not have a index.??? file. In both cases, the .php / html code shown below will send an email notice when the page loads. This is the 'cool' part! The email will contain information showing what the visitor was looking for or what URL / referral that led them to the page. The email will include: Date / Time of visit. Vistors IP Number. The exact URL 'attempted'. Visitors Browser Info. The Referral (Bad Link Used) This example uses simple HTML code for the web page display. Of course, that makes it easy to change / design any 'custom error' page. Instructions Step 1: Copy n Paste the 'Code' shown below into a n
Windows PPTP Clients with Cisco VPN Routers Beginners Guide To Linux (My new Web site!) On the htaccess and XBitHack page we show you how to set up a professional looking 404 (page not found) error page that matches your site's appearance so that it gets displayed instead of the generic 404 error page generated by most Web servers. What if the reason visitors were getting this page was because someone else has a bad link to your Web site or page (a misspelled URL or a link to a page that you have removed)? Wouldn't it be nice to find out which referring pages have bad links to your site or pages? That's what this CGI script does. When someone encounters a 404 error on your site it will automatically send you an e-mail with the specifics (URL of the offending page, client info, etc.) so that you can contact the Webmaster of the referring site to have the link corrected. If you're not familier with how to use CGI scripts, our How To Use Your CGI-BIN page will show you how to do that. You'll need to create an error HTML page and set up a .htaccess file to call the page in the event of a 404 error, but we show you how to do that on the htaccess and XBitHack page. Once that's done, all you have to do is set up this CGI script and add an SSI directive tag to the error HTML page to call the script. Note: This script was written for UNIX/Linux servers. If you know how to modify CGI scripts to work on Windows servers you should be able to get it work with IIS. See the CGI On Windows IIS page for some help with this. However, you will also need to know how to specify a non-generic 404 page in IIS. Consult the IIS documentation for this. Once everything is set up, each time the error HTML page is called by the .htaccess file and displayed, the script gets executed via the SSI directive. The script checks to see if the referral information is blank. Blank referrer information indicates that the visitor simply typed a bad URL directly into the location line in their browser. In such a case the script does nothing. However, if there is