4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 01, 2014, 10:16:32 PM

Login with username, password and session length
Search:     Advanced search
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  General / Allgemeines
| |-+  Programming
| | |-+  Error404 page
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
This topic has not yet been rated!
Author Topic: Error404 page  (Read 3914 times)
jeyjoo
Newbie
*
Offline Offline

Posts: 46

Thank You
-Given: 5
-Receive: 1

Jeyjoo Web Design


View Profile WWW
« 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

1
ErrorDocument 404 /error.html

Any ideas?
Thanks
Logged

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
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 554

mmm PHP...


View Profile WWW
« 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

1
ErrorDocument 404 /error.html

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

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)
jeyjoo
Newbie
*
Offline Offline

Posts: 46

Thank You
-Given: 5
-Receive: 1

Jeyjoo Web Design


View Profile WWW
« 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

1
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
Logged

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
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 554

mmm PHP...


View Profile WWW
« 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:
1
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)
Logged

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)
jeyjoo
Newbie
*
Offline Offline

Posts: 46

Thank You
-Given: 5
-Receive: 1

Jeyjoo Web Design


View Profile WWW
« 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:
   

1
ErrorDocument 404 /gallery/error.html


And still not working!
Logged

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
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17849

Thank You
-Given: 47
-Receive: 554

mmm PHP...


View Profile WWW
« 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.
Logged

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)
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.175 seconds with 20 queries.