General / Allgemeines > Programming

Error404 page

(1/2) > >>

jeyjoo:
Version 1.7.6
Image gallery homepage - 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: ---ErrorDocument 404 /error.html
--- End code ---

Any ideas?
Thanks

V@no:

--- Quote from: jeyjoo on October 09, 2011, 04:10:13 PM ---I've tried dding the line below to my top level .htaccess without any luck


--- Code: ---ErrorDocument 404 /error.html
--- End code ---

--- End quote ---

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

jeyjoo:

--- Quote from: V@no on October 09, 2011, 05:18:11 PM ---
--- Quote from: jeyjoo on October 09, 2011, 04:10:13 PM ---I've tried dding the line below to my top level .htaccess without any luck


--- Code: ---ErrorDocument 404 /error.html
--- End code ---

--- End quote ---

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

--- End quote ---

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

V@no:
You are using / at the beginning of your error document path, which means "root", so perhaps you should try add the directory:

--- Code: ---ErrorDocument 404 /gallery/error.html
--- End code ---

Note, since you want have two different error pages, this line should go into .htaccess in your gallery root directory (/gallery/.htaccess)

jeyjoo:
That is exactly what I have got:


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


--- Code: ---ErrorDocument 404 /gallery/error.html
--- End code ---


And still not working!

Navigation

[0] Message Index

[#] Next page

Go to full version