I’m seeing the same error. When I have a custom permalink format turned on, I receive this error instead of my custom 404 page:
“
Not Found
The requested URL /cgi-bin/php/index.php was not found on this server.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
“
My server setup:
—————-
FreeBSD 5.4
Apache 1.3.34
PHP 4.4.2
WordPress 2.0
My .htaccess file:
——————
#BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
#END WordPress
ErrorDocument 404 /index.php?error=404
My custom permalink structure:
——————————
/%postname%.html
And to see the error in action:
——————————-
https://www.mikelee.org/404
If I turn off the custom permalinks (and use the default structure), then revise my .htaccess to use this line:
ErrorDocument 404 /404.html
instead of this line:
ErrorDocument 404 /index.php?error=404
Then everything works as it should. It does seem like a bug in the software to me too, and I would be super appreciative (with a cherry on top) for a fix to this! If I can provide any more info to help troubleshoot this, please let me know! I’ve gone through a few hours worth of previous forum posts & documentation to no avail. Thanks in advance!