470,866 Members | 1,903 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,866 developers. It's quick & easy.

redirect if error 404

This is an apache question (little off-topic)

I have this .htaccess in web root
--------------
ErrorDocument 404 /error404handler.php
--------------
BUT I take in Mozilla this when I call a URL that dont exist:
--------------------
Not Found
The requested URL /this_dont_exist was not found on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an
ErrorDocument to handle the request.
---------------------

Why Error 403 Forbidden in ErrorDocument???
both .htaccess and error404handler.php have chmod 644
Jul 17 '05 #1
3 8789
> I have this .htaccess in web root
--------------
ErrorDocument 404 /error404handler.php
--------------
BUT I take in Mozilla this when I call a URL that dont exist:
--------------------
Not Found
The requested URL /this_dont_exist was not found on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an
ErrorDocument to handle the request.
---------------------

Why Error 403 Forbidden in ErrorDocument???
both .htaccess and error404handler.php have chmod 644


In server there are many server roots
My root is
http://tassadar.physics.auth.gr/~chameleon/
maybe this is relative?
Jul 17 '05 #2
"<- Chameleon ->" <ch******@hotmail.NOSPAM.com> wrote in message news:<bp**********@nic.grnet.gr>...
I have this .htaccess in web root
--------------
ErrorDocument 404 /error404handler.php
--------------
BUT I take in Mozilla this when I call a URL that dont exist:
--------------------
Not Found
The requested URL /this_dont_exist was not found on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an
ErrorDocument to handle the request.
---------------------

Why Error 403 Forbidden in ErrorDocument???
both .htaccess and error404handler.php have chmod 644


In server there are many server roots
My root is
http://tassadar.physics.auth.gr/~chameleon/
maybe this is relative?


You should provide some more hints about your system. Is all
other .htaccess directives working for you???

---
"Dying is an art, like everything else"---Sylvia Plath
Email: rrjanbiah-at-Y!com
Jul 17 '05 #3
Regarding this well-known quote, often attributed to <- Chameleon ->'s
famous "Sun, 23 Nov 2003 23:01:57 +0200" speech:
I have this .htaccess in web root
--------------
ErrorDocument 404 /error404handler.php
--------------
BUT I take in Mozilla this when I call a URL that dont exist:
--------------------
Not Found
The requested URL /this_dont_exist was not found on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an
ErrorDocument to handle the request.
---------------------

Why Error 403 Forbidden in ErrorDocument???
both .htaccess and error404handler.php have chmod 644


In server there are many server roots
My root is
http://tassadar.physics.auth.gr/~chameleon/
maybe this is relative?


Try using the full URL for the redirect. If that works, at least you know
it's not an .htaccess problem.

--
-- Rudy Fleminger
-- sp@mmers.and.evil.ones.will.bow-down-to.us
(put "Hey!" in the Subject line for priority processing!)
-- http://www.pixelsaredead.com
Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Damo | last post: by
10 posts views Thread by Bob Garbados | last post: by
2 posts views Thread by Kerri | last post: by
6 posts views Thread by Sam | last post: by
6 posts views Thread by Peter Row | last post: by
2 posts views Thread by Brian | last post: by
8 posts views Thread by Andreas Klemt | last post: by
3 posts views Thread by wwwmike | last post: by
7 posts views Thread by =?Utf-8?B?YzY3NjIyOA==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.