Redirect Loops Uninstalling

when the built in deactivation does not work, manual uninstalling

Installing SSL can be tricky. If another plugin redirects to http, or your certificate is not valid,  a redirect loop could occur, resulting in a not accessible back-end. This plugin is shipped with a simple way to deactivate remotely, without access to the back-end. Though this should always work, as a fall-back I’ll describe here how you can remove all aspects of this plugin.

To know what we have to do, we have to know what the plugin does:

  1. Add fixes to the wp-config.php (when necessary)
  2. On apache servers, if you enabled the htaccess redirect option, a .htaccess redirect
  3. Change site and home url to https.
  4. Dynamically fixes mixed content and adds javascript redirect.

So summarising, we have to roll back the wp-config.php, the .htaccess, and the site and homeurl.

Item 4 is dynamical (does not change anything, only the output of your website), so will be taken care of by renaming the plugin file, which deactivates it.

So we have to do the following:

1) Deactivate plugin

Deactivate the plugin by renaming the plugin folder.
Open your ftp client, navigate to wp-content/plugins/ and rename the really-simple-ssl plugin to really-simple-ssl-off

2) If used, remove .htaccess redirect

Then, still in the ftp client, find your .htaccess file (make sure hidden files are show), in the webroot, and remove all lines between these comments (and the comments themselves as well)

# BEGIN rlrssslReallySimpleSSL

and

# END rlrssslReallySimpleSSL

3) Remove changes in the wp-config.php

Now, still in your webroot, find your wp-config.php, open it and check if any lines were added by really simple ssl. If so, remove it.

4 a) Change site url and home url back to http://

Now, add

 update_option( 'siteurl', 'http://example.com' );
 update_option( 'home', 'http://example.com' );

To your functions.php. You can find the functions.php in wp-content/themes/your-active-theme/functions.php.

Use a new browser, or completely clear your browser history, to browse to your http link and check the result.

4b) Change site url and home url to http://, database method

If you can’t get it to work using method 4a, you can change the url back to http directly in the database.

https://codex.wordpress.org/Changing_The_Site_URL. Scroll down to  Changing the URL directly in the database, and follow the instructions.

When you have followed these steps, you can be sure the plugin does not affect your site anymore. If you are still having trouble, something else is affecting your site. In that case, try disabling plugins until it works again. Remember to keep clearing your browser cache.

If you have enabled HSTS, you have to clear it from your browser specifically.

Many issues stem from the fact that people forget the browser can be pretty persistent in remembering your site was on SSL. Sometimes a caching plugin can cause a lot of trouble as well.

Related Articles

7 Comments

  • Oskar

    I’m really concerned. I’ve followed every step on this page to try and remove “Really Simple SSL” from my website and it’s still trying to load the HTTPS version of my site! Even when duplicated the site and installed it on my localhost it’s still trying to do it, and completely LOCKED me out of the wp-admin section.

    Is there an actual support email I can contact you? For proper support.

  • greg drebert

    hey, works great, thx

  • Arturo

    Hi,
    Thanks for your nice work with this plug in.
    While looking for issues with my WP, I’ve accidentally deactivated the Really Simple SSL from the WP Dashboard.
    Now the site has crashed. I can not access to the admin area.
    Can I activate this plug in via FTP or what can I do to have my site working?
    Thanks for your help.

    Regards,
    Arturo

    • Mark Wolters

      Hi Arturo,

      are you completely unable to login or can you see the back-end with messed up styling? If so you can re-activate the plugin and the ‘Activate SSL’ button should be available on the admin page. It can be a pain to find but once you click it your site should return to normal.

      Mark

      • Arturo

        Hi Mark,
        Thanks for your quick reply.
        I followed your instructions: in the back-end (looking awful without style), I went to the plug-ins section and reactivated the Really Simple SSL plug-in and hit the Activate SSL button afterwards. Everything is working fine now.

        At the begging, neither user name nor password worked to log in. I just accessed the site in incognito mode and my credentials have been accepted. Just letting you know it, in case there would be more people having the same problem.

        Glad this is working again.
        Thanks for your great support !

        Have a nice day.

        Regards,
        Arturo

Leave a Comment