Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

ErrorDocument 404 and HTTP/1.1 404 Not Found

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Apache, Perl and SuSE 8.2  
Author Message
user3012

External


Since: Oct 25, 2004
Posts: 1



(Msg. 1) Posted: Mon Oct 25, 2004 5:44 am
Post subject: ErrorDocument 404 and HTTP/1.1 404 Not Found
Archived from groups: alt>apache>configuration (more info?)

Hello,

I experience some problems with Apache 1.3.29 and error redirections.
I have a .htaccess with one rule : ErrorDocument 404 /err.php
If somebody goes to /this-page-doesnt-exist, he goes in err.php and I
can give some content. The problem is that Apache send a 404 code (in
first line), and ie 6 doesn't really like it, it seems to depend of the
time between the 404 answer and the html data, but it sometimes shows a
404 error. Many sites use this code (w3c validator for example). In the
web browser url, /this-page-doesnt-exist appears.

If the .htaccess contains ErrorDocument 404 http://mysite/err.php , it
works fine, a HTTP/1.1 200 OK is sent, and everything goes well, *but*,
the web browser then shows http://mysite/err.php as the url for the page.

How can I avoid getting a 404 code, and having the full url diplayed at
the same time ? I tried to send a header("HTTP/1.1 200 OK") with php,
but it doesn't change a bit.

Thank you for your help.

 >> Stay informed about: ErrorDocument 404 and HTTP/1.1 404 Not Found 
Back to top
Login to vote
user3016

External


Since: Oct 29, 2004
Posts: 6



(Msg. 2) Posted: Sun Oct 31, 2004 4:31 am
Post subject: Re: ErrorDocument 404 and HTTP/1.1 404 Not Found [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

schrieb am Mon, 25 Oct 2004 02:44:36 +0200:

 > I experience some problems with Apache 1.3.29 and error redirections.
 > I have a .htaccess with one rule : ErrorDocument 404 /err.php
 > If somebody goes to /this-page-doesnt-exist, he goes in err.php and I
 > can give some content. The problem is that Apache send a 404 code (in
 > first line)
 >

That's not the problem. Put a static page there and you'll see that it
still sends 404 but everything is well. I assume the PHP page may send
another header conflicting with the 404. Check the http headers going in
and out.


Kai
--

Kai Schätzl, Berlin, Germany
IE-Center: <a style='text-decoration: underline;' href="http://ie5.de" target="_blank">http://ie5.de</a> & <a style='text-decoration: underline;' href="http://msie.winware.org" target="_blank">http://msie.winware.org</a><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: ErrorDocument 404 and HTTP/1.1 404 Not Found 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
WAP Not Found - I have a wml which works fine with provider 1, using my cell phone (WAP). If i place the same fileon another server of provider 2, phone says: file not found. Direct access via the browser is ok, but cellphone not. Provider 2 uses Apache server, and ha...

rotatelogs apache2 not found - Hello, I have a problem that is driving me crazy. Unless I put the full path to rotatelogs into the configuration of apache2, it does not run. It doesn't seem to matter what combination of PATH environment, ServerRoot etc that I put it, it tells me..

The requested URL / was not found on this server. - I recompiled, and I installed Apache 2.0.50 again, but when i try to connect to my page, http://www.pianura-online.com, I get this error Not Found The requested URL / was not found on this server. I don't know why this is happening, I modified the..

htpasswd: command not found - Any help with this much appreciated. Using apache v2 Thanks in advance. Regards tHatDudeUK

htacess and user not found ! - hi ! ..htacces doesn't work ! I give the name and password, but i don't have access to the /webtest directory In error.log, i can see : [error] user yannick not found : /webtest In httpd.conf, I've added : <Directory /var/www/webtest>..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]