Reputation:
Have tried countless RewriteRule, including those suggested by previous posts. Unefortunately, none works with my problem. Any help appreciated.
Upvotes: 0
Views: 1789
Reputation: 655239
Try this rule:
RewriteCond %{QUERY_STRING} ^(([^%]+|%([013-9a-fA-F][0-9a-fA-F]|2[0-57-9a-fA-F]))*)%26(.*)
RewriteRule ^ %{REQUEST_URI}?%1&%4 [N]
Upvotes: 3
Reputation: 30881
First, add to you vhost config: (adding to .htaccess won't work)
RewriteMap escape int:escape
Next, replace any occurrence of a variable in question with ${escape:$N}
, e.g. replace
RewriteCond %{REQUEST_FILENAME} !-s RewriteRule ^([^/]+)$ ?query=$1 [L,QSA]with
RewriteCond %{REQUEST_FILENAME} !-s RewriteRule ^([^/]+)$ ?query=${escape:$1} [L,QSA]
Upvotes: 0