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 47935] New: Documentation > Rewrite > Rewrite Conditions: contains a contradiction
Date Fri, 02 Oct 2009 08:49:05 GMT
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: bugs@httpd.apache.org
        ReportedBy: p.org@gmx.at


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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message