|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #35146 ErrorDocument 404
Submitted: 2005-11-08 02:41 UTC Modified: 2005-11-08 05:02 UTC
From: kingva at jy-trading dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: FreeBSD
Private report: No CVE-ID: None
 [2005-11-08 02:41 UTC] kingva at jy-trading dot com
I made file .htaccess in the default directory,include following content:

ErrorDocument 404 /404.php

also I made a file:404.php,

Reproduce code:
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> 
$pos = strpos($url, '/');
$url = substr($url, $pos+1);
<script language="JavaScript">"<?php print($suggestedurl);?>";

Expected result:
If the URL is not exist, We will get another url.

Actual result:
sometimes working well, sometimes not in the IE, But in the Firefox, it always working well. but on my local computer, it always working well.

the actual address:

you can test :

you should get the article 1265, but sometimes not, maybe you get "The page cannot be found", if you refresh in the IE. Maybe you get the article.

I dont know what's the reason, Can you help me?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-08 05:02 UTC]
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

The bug system is not the place to answer user questions. Please use the appropriate
support options (mailinglists etc.)

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Sep 23 20:01:27 2020 UTC