[ php-blog-Bugs-1465544 ] ErrorDocument shouldn't be given when using mod_rewrite

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.serendipity.trackers
Message-ID <[email protected]>
Bugs item #1465544, was opened at 2006-04-06 07:23
Message generated for change (Comment added) made by garvinhicking
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=542822&aid=1465544&group_id=75065

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Administrative functions
Group: None
>Status: Closed
>Resolution: Rejected
>Priority: 1
Submitted By: John Goerzen (jgoerzen)
>Assigned to: Garvin Hicking (garvinhicking)
Summary: ErrorDocument shouldn't be given when using mod_rewrite

Initial Comment:
Hello,

In .htaccess on my s9y installation, s9y generated this
line:

ErrorDocument 404 /index.php

This is not necessary since I am using mod_rewrite for
URL rewriting.

What's more, it's harmful.  I recently switched from a
different blog software on this domain, and old URLs
*should* be given a 404.  Otherwise, bots and humans
will believe that these old URLs are still valid, and
all sorts of oddity can occur.  Among other things,
requests for image files or XML feeds could be
fulfilled with HTML documents.

----------------------------------------------------------------------

>Comment By: Garvin Hicking (garvinhicking)
Date: 2006-04-06 08:51

Message:
Logged In: YES 
user_id=473563

You are right, it is not necessary. But we use it as a
fallback method in case mod_rewrite has problems or a Rule
is not properly entered. In the past we had problematic
RewriteRules, but the blog was still running because of the
ErrorHandling fallback.

In your case you could manually adjust your .htaccess file,
but the case you're having usually happens less often and
would make things worse for the usual user and only improve
the situation in rare(r) cases. URLs that do not match any
s9y pattern DO emit a 404 header (even they show content),
so bots should recognize that 404.

Best regards,
Garvin

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=542822&aid=1465544&group_id=75065


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.