This is a discussion on How to use cpanel part3: Fantasio and custom error pages. within the Programming Articles forums, part of the Webmaster Articles/Tutorials category; Part 3: Custom error and fantasio... Custom error pages. Some people like to use custom error pages for different status ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| | #1 (permalink) |
| Moderator | Part 3: Custom error and fantasio... Custom error pages. Some people like to use custom error pages for different status codes. Lets first find out what these status codes are? 404 = This part of the site is not found, so it does not exist or has been deleted. 401 = Authorization required; you have tried to access something that requires HTTP authorization. 403 = Forbidden; A site that does not require HTTP authorization, but you do not have the correct permissions to view this page. The directory ?cgi-bin? usually gets this error. 500 = Internal server error; This is when there is a script that does not work correctly, or usually a .cgi script that has a binary upload. Lets view what the normal code is for these scripts. Lets look at 404 first, as it is the most common? Code: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <HTML><HEAD> <TITLE>404 Not Found</TITLE> </HEAD><BODY> <H1>Not Found</H1> The requested URL /hfjbg was not found on this server.<P> <P>Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. <HR> <ADDRESS>Apache/1.3.33 Server at www.robertall.com Port 80</ADDRESS> </BODY></HTML> Code:
<html><head>
<title>404 Not Found</title>
<style><!--
body {font-family: arial,sans-serif}
div.nav {margin-top: 1ex}
div.nav A {font-size: 10pt; font-family: arial,sans-serif}
span.nav {font-size: 10pt; font-family: arial,sans-serif; font-weight: bold}
div.nav A,span.big {font-size: 12pt; color: #0000cc}
div.nav A {font-size: 10pt; color: black}
A.l:link {color: #6f6f6f}
A.u:link {color: green}
//--></style>
</head>
<body text=#000000 bgcolor=#ffffff>
<table border=0 cellpadding=2 cellspacing=0 width=100%><tr><td rowspan=3 width=1% nowrap>
<b><font face=times color=#0039b6 size=10>G</font><font face=times color=#c41200 size=10>o</font><font face=times color=#f3c518 size=10>o</font><font face=times color=#0039b6 size=10>g</font><font face=times color=#30a72f size=10>l</font><font face=times color=#c41200 size=10>e</font> </b>
<td> </td></tr>
<tr><td bgcolor=#3366cc><font face=arial,sans-serif color=#ffffff><b>Error</b></td></tr>
<tr><td> </td></tr></table>
<blockquote>
<H1>Not Found</H1>
The requested URL <code>/hfjbg</code> was not found on this server.
<p>
</blockquote>
<table width=100% cellpadding=0 cellspacing=0><tr><td bgcolor=#3366cc><img alt="" width=1 height=4></td></tr></table>
</body></html>
First we go to the link that says ?custom error pages? in cpanel. Then you click on one of the orange looking buttons and then you just enter the HTML code and choose the extension at the bottom of the page above the submit button. When you do this make sure not to make any HTML errors, and it can be made to look like the normal design of your site, you do this by looking at the code on /index.* and then just copy and paste it into the box, then you just change the extension to that certain page that was on the old one, and make some editing to the text to show the user that they have hit an 404, or any other status code that you can edit. Using Fantastico It is very hard to spell, and it is very useful. I think that is the only way that a user can install there scripts. I will list what I can install on my host. Code: Blogs b2evolution Nucleus pMachine Free WordPress Content Management Drupal Geeklog Mambo Open Source PHP-Nuke phpWCMS phpWebSite Post-Nuke Siteframe Typo3 Xoops Customer Relationship Crafty Syntax Live Help Help Center Live osTicket PHP Support Tickets Support Logic Helpdesk Support Services Manager Discussion Boards phpBB2 SMF E-Commerce CubeCart OS Commerce Zen Cart F.A.Q. FAQMasterFlex Guestbooks ViPER Guestbook Image Galleries 4Images Gallery Coppermine Photo Gallery Gallery Mailing Lists PHPlist Polls and Surveys Advanced Poll phpESP PHPSurveyor Project Management dotProject PHProjekt Wiki TikiWiki PhpWiki Other Scripts Dew-NewPHPLinks Moodle Noahs Classifieds Open-Realty phpAdsNew PHPauction phpCOIN phpFormGenerator WebCalendar Extras Language Side menu appearance Email notifications As you can see, the possibilities are endless. This is a smaller tutorial, because it ends here, I cannot be bothered to do anything else to the tutorial. Installing using Fantastico is very easy, and it takes me minutes to figure out.
__________________ Free .org domain - Click for details! Do not pm asking for things. My inbox is full. Add me to MSN! |
| | |
| Tags |
| cpanel, custom, error, fantasio, pages, part3 |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PR5 Homepage + 34 PR5 pages + 214 PR3 pages... | SEOArt | Buy and Sell Ad Space | 0 | 11-08-2006 23:01 |
| Custom NS | Morphmaster | Programming Articles | 1 | 21-07-2005 17:22 |
| Custom Title? | KF1 | General Webmaster Discussion | 11 | 21-07-2005 15:34 |
| aWstats error: says that ask.co.uk has... | robertall | Search Engine Optimisation (SEO) | 5 | 22-05-2005 10:57 |
| SEO Through Well-Built Pages | Wistow | SEO Articles | 0 | 20-03-2005 13:27 |