Force HTTPS not working
-
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)
Viewing 1 replies (of 1 total)
- The topic ‘Force HTTPS not working’ is closed to new replies.