Auto Loans - Share Prices - Child Trust Funds - Loans - Personal Loans

PDA

View Full Version : Custom 404 Not Found Page


crazyryan
May 3rd 2008, 3:37 pm
Hey

Sometimes on my website the user might come accross a 404 error.

What I want to do is customise that page, how can I do that?

ErrorDocument 404 /error.php

Didn't show error.php, so I'm not sure if that's the wrong code or what.

WebGeek182
May 3rd 2008, 3:56 pm
That's the right code...there may be something else interfering with it, or you may need to make sure that the custom page you want is uploaded in the right location. Also, just to check...You have that in the .htaccess in your website's public root?

Trusted Writer
May 4th 2008, 12:06 am
I was told by my hosting that such problem is a weird issue with PHP 5

The walkround to get your error pages displayed again is adding the following rule to your .htaccess file


Options +FollowSymlinks
RewriteEngine on
RewriteBase /

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteRule ^.+.php$ /bogusfile