{"id":17541518,"date":"2024-04-01T04:16:54","date_gmt":"2024-04-01T04:16:54","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/force-https-not-working-2\/"},"modified":"2024-04-01T04:16:54","modified_gmt":"2024-04-01T04:16:54","slug":"force-https-not-working-2","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/force-https-not-working-2\/","title":{"rendered":"Force HTTPS not working"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">I added a Let&#8217;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&#8217;t force redirect HTTP urls to HTTPS for some reason<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;IfModule mod_rewrite.c&gt;\nRewriteEngine on\nRewriteCond %{HTTPS} !=on &#091;NC]\nRewriteCond %{REQUEST_URI} !wp-content\\\/cache\\\/(all|wpfc-mobile-cache)\nRewriteRule ^(.*)$ https:\/\/%{HTTP_HOST}\/$1 &#091;R=301,L]\n&lt;\/IfModule&gt;\n\nOptions -Indexes<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The test page shows the following<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#SSL TEST PAGE#\nThis page is used purely to test for SSL availability.\n\n#SERVER-HTTPS-ON# (on)\n#SERVERPORT443#\n\n#SUCCESSFULLY DETECTED SSL#<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">I tried manually adding the rules <a href=\"https:\/\/really-simple-ssl.com\/manually-insert-htaccess-redirect-http-to-https\/\">mentioned here<\/a> but they block site access altogether.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">How can I force HTTP urls to HTTPS?<\/p>\n","protected":false},"template":"","class_list":["post-17541518","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17541518","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17541518\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=17541518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}