Thread: Custom 404 page
View Single Post
  #1 (permalink)  
Old 26-01-2008, 11:20
paulmann paulmann is offline
Junior Member
 
Join Date: Jan 2008
Location: Stoke-on-Trent
Posts: 24
Default Custom 404 page

I'm having trouble setting up a custom 404 (not found) page.

In the control panel there is a icon for amending error pages and I choose the 404 option. It opens a text editor and at the bottom it says "save as ... 404.shtml". The help files say I can change the extension so I change it to 404.php because I want the 404 page to run a script:

<?php
require 'start.php';
print "<h1>Sorry...... etc ";
require 'end.php';
?>

The reason is that start and end contain the basic setup of the website hosting.

Whatever I do, typing in a non existent page brings up a blank page with:

<!--
-->

Can anyone help?