On 5/30/07, Apache Wiki <[EMAIL PROTECTED]> wrote:
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 VinkoVrsalovic:
http://wiki.apache.org/httpd/Recipes/QueryString

The comment on the change is:
Consistency var=val plus I really think showing [^/]+ is important.

I'm sort of ambivalent about var=val consistency, since the query
string doesn't need to be in that format.

  === Making the Path Part of the Query String ===

- Essentially the reverse of the above recipe.
+ 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}}}.

  {{{
- RewriteRule ^/path/(\w+)/(\w+) /path?$1=$2
+ RewriteRule ^/path/([^/]+)/([^/]+) /path?$1=$2
  }}}

I don't have a particular problem with that, but it is highly unlikely
to work if anything outside the \w character class is in there, since
URL escaping in mod_rewrite is pretty messed-up on this point. There
was a recent message on [EMAIL PROTECTED] about that.

Joshua.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to