[users@httpd] Re: mod_rewrite behavior when port is specified

2017-03-06 Thread Paul Schroeder
s distracted by the prepended '/'. I don't know how I didn't see that before. At any rate, here is a solution that works: RewriteCond %{HTTP_HOST} ^([^:]+):?.* RewriteRule ^/?(.*) https://%1:443/$1 [R=301,L] Cheers...Paul.. On Mon, Mar 6, 2017 at 4:18 PM, Paul Schroeder

[users@httpd] mod_rewrite behavior when port is specified

2017-03-06 Thread Paul Schroeder
Hello.. I'm seeing an issue where mod_rewrite seems to behave differently when the client connects to my VirtualHost and includes the port as a part of the URL. i.e. http://xenial.localdomain vs. http://xenial.localdomain:80 With this RewriteRule, the redirection that I want (to my SSL VirtualH