4images Forum & Community
General / Allgemeines => Programming => Topic started 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
ErrorDocument 404 /error.html
Any ideas?
Thanks
-
I've tried dding the line below to my top level .htaccess without any luck
ErrorDocument 404 /error.html
That looks correct. http://www.jeyjoo.com/error.html shows the same page as any other random entered address.
-
I've tried dding the line below to my top level .htaccess without any luck
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
-
You are using / at the beginning of your error document path, which means "root", so perhaps you should try add the directory:
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)
-
That is exactly what I have got:
A .htaccess is in my gallery folder, with the line:
ErrorDocument 404 /gallery/error.html
And still not working!
-
maybe your server administrator could answer this...it's working as it should on my server.