https://bz.apache.org/bugzilla/show_bug.cgi?id=58052
Bug ID: 58052
Summary: RewriteValve: Rewrite to a complete URI does not work
because the colon is URL encoded
Product: Tomcat 8
Version: 8.0.21
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
Assignee: [email protected]
Reporter: [email protected]
Using rewite valve for example to rewite only some URL's to https does not
work:
RewriteCond %{REQUEST_URI} !^/some/exception/.*$
RewriteCond %{REQUEST_URI} ^/.*$
RewriteCond %{HTTPS} off
RewriteRule ^/(.*)$ https://localhost:8443%{REQUEST_URI}
because
http://localhost:8443/
is rewritten to
https%3A//localhost%3A8443/
The colon ":" is encoded to "%3A"
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]