Forum Moderators: phranque

Message Too Old, No Replies

Interesting Problem with ErrorDocument

         

wwhite

1:29 am on May 26, 2004 (gmt 0)

10+ Year Member



I'm having a problem with ErrorDocument 404. This is what is in my .htaccess file:

ErrorDocument 404 error_404.php

When you go to a non-existant page, it forwards you to the page but it changes the addres bar to show the location of the error document instead of the URL requested. Any ideas on how to fix this?

jdMorgan

2:54 am on May 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try it this way, as shown in the documentation [httpd.apache.org]:

ErrorDocument 404 /error_404.php

If this does not correct your problem, make sure you are not invoking an external redirect to reach your script.

Jim