I am trying to force my website to redirect HTTP traffics to the HTTPS and I have verified that the htaccess file is getting accessed, but the redirect is not occurring. I have a valid cert for the site and the HTTPS version works fine but whether I type in http://bizappln.com or http://www.bizappln.com, I still get taken to the HTTP version.
Why HTTPS redirection failed at that place? Any suggestions?
.htaccess code
RewriteEngine On
RewriteCond %{SERVER_PORT} !=443 [OR]
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ https://www.bizappln.com/$1 [R=301,L]
Looks working to me - you can use a tool like https://www.redirect-checker.org to test without browser cache issue
Doesn't work for me - I stay on http for both versions. Are you sure the .htaccess is read and used?
Looks to be working for me.
Be sure to test this in incognito mode, browsers tend to cache these things.
Yup - works for me as well.
This comment was deleted 6 years ago