Custom 404 Page Help!

Soldato
Joined
11 Apr 2003
Posts
4,210
Location
Notts
Hi all, on my normal site I have a 404 redirect page, however this uses .htaccess to do what it does, and my uni host seems to not support this, is there any way to have a custom 404 page, without the ability to use .htaccess? Thanks!
 
No .htaccess support at all? That's harsh, so you have no way to protect directories with a login etc, as well?

If it was just stopping custom ErrorDocument's you could use a mod_rewrite rule in an .htaccess to redirect all URL's to a CGI script, which could test if the file exists - then just cat it to stdout, or throw up your custom 404. Inefficient but it'd work - if they support .htaccess at all, which it sounds like they don't.

Don't know of any other way.

If you have a shell account, you could throw up your own apache on a different port :p
 
Last edited:
Back
Top Bottom