4images Forum & Community

General / Allgemeines => Programming => Topic started by: jeyjoo on October 09, 2011, 04:10:13 PM

Title: Error404 page
Post by: jeyjoo on October 09, 2011, 04:10:13 PM
Version 1.7.6
Image gallery homepage - http://www.jeyjoo.com/gallery (http://www.jeyjoo.com/gallery)
Current 404 redirects to my homepage 404 page (not that of my gallery).
I've tried dding the line below to my top level .htaccess without any luck

Code: [Select]
ErrorDocument 404 /error.html
Any ideas?
Thanks
Title: Re: Error404 page
Post by: V@no on October 09, 2011, 05:18:11 PM
I've tried dding the line below to my top level .htaccess without any luck

Code: [Select]
ErrorDocument 404 /error.html

That looks correct. http://www.jeyjoo.com/error.html shows the same page as any other random entered address.
Title: Re: Error404 page
Post by: jeyjoo on October 14, 2011, 01:40:24 PM
I've tried dding the line below to my top level .htaccess without any luck

Code: [Select]
ErrorDocument 404 /error.html

That looks correct. http://www.jeyjoo.com/error.html shows the same page as any other random entered address.

Appologies Veno. I did not explain fully.

I have two error 404 pages:

1. To handle a 404 within my website - http://www.jeyjoo.com/error404.html
2. To handle a 404 within my gallery http://www.jeyjoo.com/gallery/error404.html. Currently, I cannot pick up this error page from the .htaccess within my gallery folder.

Thanks
Title: Re: Error404 page
Post by: V@no on October 14, 2011, 01:59:05 PM
You are using / at the beginning of your error document path, which means "root", so perhaps you should try add the directory:
Code: [Select]
ErrorDocument 404 /gallery/error.html
Note, since you want have two different error pages, this line should go into .htaccess in your gallery root directory (/gallery/.htaccess)
Title: Re: Error404 page
Post by: jeyjoo on October 15, 2011, 03:41:47 PM
That is exactly what I have got:


A .htaccess is in my gallery folder, with the line:
   

Code: [Select]
ErrorDocument 404 /gallery/error.html

And still not working!
Title: Re: Error404 page
Post by: V@no on October 15, 2011, 07:37:41 PM
maybe your server administrator could answer this...it's working as it should on my server.