Title: Force HTTPS not working
Last modified: April 1, 2024

---

# Force HTTPS not working

 *  Resolved [johnflufin](https://wordpress.org/support/users/johnflufin/)
 * (@johnflufin)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/force-https-not-working-2/)
 * 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
 *     ```wp-block-code
       <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
 *     ```wp-block-code
       #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](https://really-simple-ssl.com/manually-insert-htaccess-redirect-http-to-https/)
   but they block site access altogether.
 * How can I force HTTP urls to HTTPS?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Mark](https://wordpress.org/support/users/markwolters/)
 * (@markwolters)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/force-https-not-working-2/#post-17547605)
 * Hi [@johnflufin](https://wordpress.org/support/users/johnflufin/),
 * those rules should redirect to [https://](https://wordpress.org/support/topic/force-https-not-working-2/?output_format=md),
   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://](https://wordpress.org/support/topic/force-https-not-working-2/?output_format=md).

Viewing 1 replies (of 1 total)

The topic ‘Force HTTPS not working’ is closed to new replies.

 * ![](https://ps.w.org/really-simple-ssl/assets/icon-256x256.png?rev=2839720)
 * [Really Simple Security - Simple and Performant Security (formerly Really Simple SSL)](https://wordpress.org/plugins/really-simple-ssl/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/really-simple-ssl/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/really-simple-ssl/)
 * [Active Topics](https://wordpress.org/support/plugin/really-simple-ssl/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/really-simple-ssl/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/really-simple-ssl/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mark](https://wordpress.org/support/users/markwolters/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/force-https-not-working-2/#post-17547605)
 * Status: resolved