Title: Plugin Caused a Redirect Loop
Last modified: October 26, 2017

---

# Plugin Caused a Redirect Loop

 *  [joeyoungblood](https://wordpress.org/support/users/joeyoungblood/)
 * (@joeyoungblood)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/plugin-caused-a-redirect-loop/)
 * Using Cloudways managed WordPress hosting and installed this plugin to handle
   the SSL redirect logic. Immediately after saving the settings the website began
   experiencing a redirect loop. I cleared my cache, used different browsers, used
   mobile browsers, had friends try from different locations, and used a VPN to 
   try and load the site, all of which resulted in the redirect loop messaging.
 * I reached out to Cloudways support and they told me that the code in the .htaccess
   file looked wrong.
 * Cloudways support used the following redirect code in the htaccess and it worked.
   The redirect loop message disappeared and the HTTP url variants began redirecting
   to the target HTTPS variant:
 *     ```
       RewriteEngine On
       RewriteCond %{HTTP:X-Forwarded-Proto} !https
       RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
       ```
   
 * This is the code that did not work which was inserted by the Easy HTTPS Redirection
   plugin:
 *     ```
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteCond %{SERVER_PORT} !^443$
       RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
       </IfModule>
       ```
   
    -  This topic was modified 8 years, 7 months ago by [joeyoungblood](https://wordpress.org/support/users/joeyoungblood/).
    -  This topic was modified 8 years, 7 months ago by [joeyoungblood](https://wordpress.org/support/users/joeyoungblood/).

Viewing 1 replies (of 1 total)

 *  Plugin Support [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/plugin-caused-a-redirect-loop/#post-9624840)
 * Thank you for sharing the solution provided by Cloudways support staff. I have
   submitted a message to the plugin developers to investigate further this solution.
 * Thank you

Viewing 1 replies (of 1 total)

The topic ‘Plugin Caused a Redirect Loop’ is closed to new replies.

 * ![](https://ps.w.org/https-redirection/assets/icon-128x128.png?rev=1779143)
 * [Easy HTTPS Redirection (SSL)](https://wordpress.org/plugins/https-redirection/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/https-redirection/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/https-redirection/)
 * [Active Topics](https://wordpress.org/support/plugin/https-redirection/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/https-redirection/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/https-redirection/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/plugin-caused-a-redirect-loop/#post-9624840)
 * Status: not resolved