You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@httpd.apache.org by Apache Wiki <wi...@apache.org> on 2012/08/31 14:32:03 UTC

[Httpd Wiki] Update of "RewriteQueryString" by Greg Martin

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 Greg Martin:
http://wiki.apache.org/httpd/RewriteQueryString?action=diff&rev1=17&rev2=18

  RewriteRule ^/path /path/%1/%2?
  }}}
  === Making the Path Part of the Query String ===
- Essentially the reverse of the above recipe. But this example, on the other hand, will work for any valid three level URL. {{{http://example.com/path/var/val}}} will be transformed into {{{http://example.com/path?var=val}}}.
+ Take a URL of the form {{{http://example.com/path/var/val}}} and transform it into a var=val query {{{http://example.com/path?var=val}}}. Essentially the reverse of the above recipe. This example will work for any valid three level URL. {{{http://example.com/path/var/val}}} will be transformed into {{{http://example.com/path?var=val}}}.
  
  {{{
  RewriteRule ^/path/([^/]+)/([^/]+) /path?$1=$2

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org