UK Webmaster Talk - Online Marketing - SEO


 

How to use cpanel part3: Fantasio and custom error pages.

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 ...


Go Back   UK Webmaster Talk - Online Marketing - SEO > Webmaster Articles > Webmaster Articles/Tutorials > Programming Articles

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Notices

Reply

 

LinkBack Thread Tools Display Modes
Old 05-07-2005, 18:54   #1 (permalink)
Moderator
 
Join Date: Jan 2005
Location: post is there >>
Posts: 1,586
iTrader: 0 / 0%
robertall is just really nice
Send a message via AIM to robertall Send a message via MSN to robertall
Default How to use cpanel part3: Fantasio and custom error pages.

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>
This is created because you have accessed a page that does not exist, as you can see, hfjbg does not exist on the server. Most error pages are about the same, but some such as googles error pages are custom.

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>&nbsp;&nbsp;</b>
<td>&nbsp;</td></tr>
<tr><td bgcolor=#3366cc><font face=arial,sans-serif color=#ffffff><b>Error</b></td></tr>
<tr><td>&nbsp;</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>
As you can see, it is better than the normal error pages, and by editing them, they look better, so let?s learn how we do this?

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
(One of the negatives with copy and pasting images from cpanel, is that I get 1000 pop-ups ask me to log into cpanel, so please be careful, I said a total of 16 foul words because of it.)

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!
robertall is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
cpanel, custom, error, fantasio, pages, part3

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT +1. The time now is 19:36.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
UK Webmaster Forum © WebmasterTalk.co.uk | Design by Forbairt

Ad Management by RedTyger

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41