You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wiki-changes@httpd.apache.org by Apache Wiki <wi...@apache.org> on 2007/06/06 19:24:11 UTC
[Httpd Wiki] Update of "Recipes/QueryString" by slive
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:
Remove dangerous and inefficient wildcards
------------------------------------------------------------------------------
Delete the query string entirely.
{{{
- RewriteRule (.*) $1?
+ RewriteRule ^/page /page?
}}}
=== Adding to the Query String ===
@@ -32, +32 @@
Keep the existing query string using the Query String Append flag, but add {{{var=val}}} to the end.
{{{
- RewriteRule (.*) $1?var=val [QSA]
+ RewriteRule ^/page /page?var=val [QSA]
}}}
=== Rewriting For Certain Query Strings ===