Revision 13619
Added by Aaron Marcuse-Kubitza over 10 years ago
.htaccess | ||
---|---|---|
48 | 48 |
# auto-detect dotpath in query string (having a . before any = ) |
49 | 49 |
# you can prepend . to force a dotpath, or & to force a query param |
50 | 50 |
RewriteCond %{QUERY_STRING} ^(?!\.)[^&]+$ |
51 |
# . not already prepended, does not contain & , and non-empty |
|
51 | 52 |
RewriteCond %{QUERY_STRING} ^[^=]*(?:\.|$) |
53 |
# . before any = |
|
52 | 54 |
RewriteRule ^.*$ $0?.%{QUERY_STRING} [discardpath,noescape] |
53 | 55 |
|
54 | 56 |
## parse dotpath in query string |
Also available in: Unified diff
web/.htaccess: auto-detect dotpath in query string: documented what each RewriteCond does