By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,962 Members | 1,791 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,962 IT Pros & Developers. It's quick & easy.

redirect if error 404

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
> 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

P: n/a
"<- 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

P: n/a
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.