• Resolved johnflufin

    (@johnflufin)


    I added a Let’s Encrypt SSL certificate to my site and installed and activated this plugin. I changed redirect method to 301 .htaccess redirect. This plugin added rules to the htaccess file but they don’t force redirect HTTP urls to HTTPS for some reason

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTPS} !=on [NC]
    RewriteCond %{REQUEST_URI} !wp-content\/cache\/(all|wpfc-mobile-cache)
    RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
    </IfModule>
    
    Options -Indexes

    The test page shows the following

    #SSL TEST PAGE#
    This page is used purely to test for SSL availability.
    
    #SERVER-HTTPS-ON# (on)
    #SERVERPORT443#
    
    #SUCCESSFULLY DETECTED SSL#

    I tried manually adding the rules mentioned here but they block site access altogether.

    How can I force HTTP urls to HTTPS?

Viewing 1 replies (of 1 total)
  • Plugin Author Mark

    (@markwolters)

    Hi @johnflufin,

    those rules should redirect to https://, except when the Apache module mod_rewrite is not enabled. Could you verify with your host if the mod_rewrite module is enabled? Once enabled, the .htaccess redirect should work. For now you can use the PHP redirect to redirect your site to https://.

Viewing 1 replies (of 1 total)
  • The topic ‘Force HTTPS not working’ is closed to new replies.