2
6 Comments

HTTP to HTTPS Redirection not working

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]

on January 8, 2021
  1. 1

    Looks working to me - you can use a tool like https://www.redirect-checker.org to test without browser cache issue

  2. 1

    Doesn't work for me - I stay on http for both versions. Are you sure the .htaccess is read and used?

  3. 1

    Looks to be working for me.
    Be sure to test this in incognito mode, browsers tend to cache these things.

    1. 1

      Yup - works for me as well.

  4. 1

    This comment was deleted 6 years ago