httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44572] New: Misleading information in rewriteguide.html
Date Mon, 10 Mar 2008 13:46:09 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=44572

           Summary: Misleading information in rewriteguide.html
           Product: Apache httpd-2
           Version: 2.3-HEAD
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Documentation
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: bugzilla@siteaboutnothing.com


Regarding this page: http://httpd.apache.org/docs/2.2/misc/rewriteguide.html

The section marked "Extended Redirection" is quite misleading. It describes a
roundabout, self-described kludge, which I believe is totally unnecessary. I
quote:

> Usually the Apache kernels URL escape function also escapes anchors, i.e. URLs
> like "url#anchor". You cannot use this directly on redirects with mod_rewrite
> because the uri_escape() function of Apache would also escape the hash 
> character. How can we redirect to such a URL?
> Solution:
>     We have to use a kludge by the use of a NPH-CGI script which does the 
> redirect itself. 

I achieved the desired effect by simply adding [NE] to a rewrite rule.

This removes the need for any separate script to do the forwarding.

The solution in the documentation seems very strange.

Please correct me if I'm wrong.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message