Dear Wiki user, You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change notification.
The following page has been changed by slive: http://wiki.apache.org/httpd/Recipes/QueryString The comment on the change is: Make things conistent again. ------------------------------------------------------------------------------ Rewrite URLs like {{{http://example.com/page1?var=val}}} to {{{http://example.com/page2?var=val}}} but don't rewrite if {{{val}}} isn't present. {{{ - RewriteCond %{QUERY_STRING} ^val$ + RewriteCond %{QUERY_STRING} val Rewrite ^/page1 /page2 }}} @@ -59, +59 @@ === 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 will work only for a single key=value pair containing only letters, numbers, and the underscore character. + 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. {{{ RewriteCond %{QUERY_STRING} ^(\w+)=(\w+)$ RewriteRule ^/path /path/%1/%2
