You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2007/05/23 18:45:15 UTC
DO NOT REPLY [Bug 42499] New: - Backslash produces a 404 error instead of going to is mod_rewrite
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42499>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42499
Summary: Backslash produces a 404 error instead of going to is
mod_rewrite
Product: Apache httpd-2
Version: 2.2.4
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: mod_rewrite
AssignedTo: bugs@httpd.apache.org
ReportedBy: csaba@alum.mit.edu
If the url submitted to my apache server contains a backslash, then I get a 404
error. For example:
Not Found
The requested URL /DE/d:(^|;)\w{7}(;|:$)/o:-DE;US;-US was not found on
this server.
The URL is not handed off to mod_rewrite (As I would think it should be) to be
processed by my rewrite rules. Setting AllowEncodedSlashes causes apache to
convert the backslash(es) to forward slashes, which is not what I want.
My band aid solution to this is to set
ErrorDocument 404 "/search.php"
and then in search.php append the third line (the first two already being standard):
$path_info = @$_SERVER['ORIG_PATH_INFO'];
if (!$path_info) $path_info = @$_SERVER['PATH_INFO'];
if (($ru=$_SERVER['REDIRECT_URL']) && !$path_info) $path_info = $ru;
Still this solution is cumbersome and not very nice. Shouldn't apache wait
until the rewrite rules can't deal with the original URL to issue the error?
Csaba Gabor from Vienna
This issue originally described at:
http://groups.google.com/group/alt.apache.configuration/browse_frm/thread/1ba63c9cc8036a05/44217cdf290612c6
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org