.htaccess - htaccess redirect NOT working for HTTPS - 400 Bad Request Apache 2.4.6 -


i have installed ssl certs on variety of sites. work fine if go directly https version of site, when go http version, get: "reason: you're speaking plain http ssl-enabled server port."

this should work not...

rewritecond %{https} off rewriterule .* https://%{http_host}%{request_uri} [l,r=301] 

nor version of

!=on =80 !=443, etc. 

i tried putting in vhost.conf file on server.

my developers , out of ideas , we, shockingly, cannot find almighty google us. have thoughts?

have tried these apache httpd wiki?

https://wiki.apache.org/httpd/redirectssl

https://wiki.apache.org/httpd/rewritehttptohttps


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -