Author Topic: Error404 page  (Read 6726 times)

0 Members and 1 Guest are viewing this topic.

Offline jeyjoo

  • Newbie
  • *
  • Posts: 46
  • Jeyjoo Web Design
    • View Profile
    • Sheffield Web Design
Error404 page
« on: October 09, 2011, 04:10:13 PM »
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: [Select]
ErrorDocument 404 /error.html
Any ideas?
Thanks
Jeyjoo - kick ass web design, SEO and online marketing packages.

http://www.jeyjoo.com/gallery/ - free stock images (a 4images gallery)  |
http://www.jeyjoo.com - Sheffield web design  |  http://www.jeyjoo.com - Sheffield SEO  |  http://it.jeyjoo.com - Web Design Milano  |  http://it.jeyjoo.com - SEO Italiano

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Error404 page
« Reply #1 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.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline jeyjoo

  • Newbie
  • *
  • Posts: 46
  • Jeyjoo Web Design
    • View Profile
    • Sheffield Web Design
Re: Error404 page
« Reply #2 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
Jeyjoo - kick ass web design, SEO and online marketing packages.

http://www.jeyjoo.com/gallery/ - free stock images (a 4images gallery)  |
http://www.jeyjoo.com - Sheffield web design  |  http://www.jeyjoo.com - Sheffield SEO  |  http://it.jeyjoo.com - Web Design Milano  |  http://it.jeyjoo.com - SEO Italiano

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Error404 page
« Reply #3 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)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline jeyjoo

  • Newbie
  • *
  • Posts: 46
  • Jeyjoo Web Design
    • View Profile
    • Sheffield Web Design
Re: Error404 page
« Reply #4 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!
Jeyjoo - kick ass web design, SEO and online marketing packages.

http://www.jeyjoo.com/gallery/ - free stock images (a 4images gallery)  |
http://www.jeyjoo.com - Sheffield web design  |  http://www.jeyjoo.com - Sheffield SEO  |  http://it.jeyjoo.com - Web Design Milano  |  http://it.jeyjoo.com - SEO Italiano

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Administrator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Error404 page
« Reply #5 on: October 15, 2011, 07:37:41 PM »
maybe your server administrator could answer this...it's working as it should on my server.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)