httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Httpd Wiki] Update of "RewriteQueryString" by Greg Martin
Date Fri, 31 Aug 2012 12:32:03 GMT
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


Mime
View raw message