Creating custom error pages in PHP Fusion is easy. This article shows you how to create a custom 404 'page not found' error page but it can easily be modified to create pages for other ErrorDocument codes.
If have applied the page title optimisation mod your visitor will be presented with an informative page which matches the theme of your site AND which also has a HTML title tag of your choosing.
Step 1: Download the code for 404.php from the CVS Browser (click the disk).
Step 2: Edit and modify 404.php to meet your requirements.
Step 3: Upload 404.php to the root directory of your PHP Fusion installation.
Step 4: Create a .htaccess file if you don't already have one and add the following to it.
## Forbidden
ErrorDocument 404 /404.php
That's it - your done!
To create pages for other ErrorDocument codes: Download 404.php and rename it to whatever error code you have in mind and modify your .htaccess file accordingly. Possible inclusions are:
Posted by Len Johnson
on March 22 2006 17:52:14
2373 Reads ·
Ratings
Rating is available to Members only.
Please login or register to vote.
No Ratings have been Posted.
Cheap Web Hosting
Here at The Webmaster's Bureau we understand the need to maintain the balance between low costs, acceptable levels of service and hosting account features. Whether your requirements are very basic or you need scalable web space with some serious oomph, at £2.99 a month, price is simply not an issue. » Web Hosting Details