Dear Wiki user, You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change notification.
The "RewriteQueryString" page has been changed by EricCovener: https://wiki.apache.org/httpd/RewriteQueryString?action=diff&rev1=18&rev2=19 Comment: add a strict query matching example RewriteCond %{QUERY_STRING} ^(.*)val(.*)$ RewriteRule /path /path?%1other_val%2 }}} + + === Modifying the Query String (strict match) === + Same as the example above, but with a more strict match of the "key" in the query string. This is usually overkill unless your URL's have + keys that are substrings of other keys. + + {{{ + RewriteCond %{QUERY_STRING} (.*(?:^|&))key=val((?:&|$).*) + RewriteRule /path /path?%1other_val%2 + }}} + === Making the Query String Part of the Path === Take a URL of the form {{{http://example.com/path?var=val}}} and transform it into {{{http://example.com/path/var/val}}}. Note that this particular example will work only for a single var=val pair containing only letters, numbers, and the underscore character. --------------------------------------------------------------------- To unsubscribe, e-mail: docs-unsubscr...@httpd.apache.org For additional commands, e-mail: docs-h...@httpd.apache.org