Using this rule in the virtual host configuration file leads to double escaping of request parameters:
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
For example:
http://example.com?f=hello%20world
Leads to
https://example.com?f=hello%2520world
Note that "% 25" is out of the% sign. Why is this happening?
query-string apache mod-rewrite
gaspard Jun 07 2018-11-11T00: 00Z
source share