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: [email protected]
        ReportedBy: [EMAIL PROTECTED]


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to