cancel
Showing results for 
Search instead for 
Did you mean: 

404 error page does not seem to work !

Adrian1855
Newbie
Posts: 2
Registered: ‎19-03-2009

404 error page does not seem to work !

Hi I have folowed the instructions for uploading a .htaccess txt file to my site but when I deliberately generate a 404 error I do not go to my 404 page. My page is working and the following is
ErrorDocument 500 http://www.tts-systems.co.uk/Error/misdirection.htm
ErrorDocument 404 http://www.tts-systems.co.uk/Error/misdirection.htm
ErrorDocument 401 http://www.tts-systems.co.uk/Error/misdirection.htm
ErrorDocument 403 http://www.tts-systems.co.uk/Error/misdirection.htm
Can anyone help ?
Cheers
Adrian
4 REPLIES
Denzil
Grafter
Posts: 1,733
Registered: ‎31-07-2007

Re: 404 error page does not seem to work !

Maybe a silly question, but is the actual file path exactly the same as in the .htaccess? Check case, as subfolder names are case sensitive.
Adrian1855
Newbie
Posts: 2
Registered: ‎19-03-2009

Re: 404 error page does not seem to work !

Hi Denzil
I have considered that and even changed the web path to the folling and tested this by using the links
ErrorDocument 500 http://www.tts-systems.co.uk/site_error/misdirection.htm
ErrorDocument 404 http://www.tts-systems.co.uk/site_error/misdirection.htm
ErrorDocument 401 http://www.tts-systems.co.uk/site_error/misdirection.htm
ErrorDocument 403 http://www.tts-systems.co.uk/site_error/misdirection.htm
they work and point to the file. Not pretty but work in progress !
Superuser
Superuser
Posts: 2,941
Thanks: 643
Fixes: 6
Registered: ‎06-04-2007

Re: 404 error page does not seem to work !

I'm not sure if htaccess will take URL's for this.  I think it should either be
ErrorDocument 500 /site_error/misdirection.htm
or
ErrorDocument 500 /full/document/root/site_error/misdirection.htm
Can't remember off the top of my head wich one.
Phil
Superuser
Superuser
Posts: 2,941
Thanks: 643
Fixes: 6
Registered: ‎06-04-2007

Re: 404 error page does not seem to work !

Just had a look at my htaccess (not on any of the Plusnet servers) and I have:
ErrorDocument 404 /ErrorPages/404.php
Phil