https://issues.apache.org/bugzilla/show_bug.cgi?id=47935

           Summary: Documentation > Rewrite > Rewrite Conditions: contains
                    a contradiction
           Product: Apache httpd-2
           Version: 2.2-HEAD
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Documentation
        AssignedTo: [email protected]
        ReportedBy: [email protected]


This section of the documentation contains a contradiction:
http://httpd.apache.org/docs/2.2/rewrite/rewrite_intro.html#rewritecond

---

For example, to deny requests that contain the word "hack" in their query
string, except if they also contain a cookie containing the word "go", you
could use:

RewriteCond %{QUERY_STRING} hack
RewriteCond %{HTTP_COOKIE} !go
RewriteRule .* - [F]

Notice that the exclamation mark specifies a negative match, so the rule is
only applied if the cookie does not contain "go".

---

The contradiction:
[...] if they also contain a cookie containing the word "go" [...]
[...] if the cookie does not contain "go" [...]

-- 
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