There are situations where you can get locked out of the backend of WordPress. For example, if you do not have a valid SSL certificate, and you forced it anyway, or if you have a redirect to http:// enabled on your site, then activate Really Simple SSL, which adds a redirect to https.
In this case you want to deactivate the plugin, but you can’t access the WordPress plugin overview. The plugin comes with a function to uninstall if that happens. Because the site_url is changed to https just removing or renaming the plugin in FTP won’t work! The deactivation script removes all changes that were made and reverts your site to http.
You don’t need any technical skills, but you do need FTP access to your site.
- Open your ftp client, like filezilla for example, and open your website.
- Look for the folder wp-content/plugins/really-simple-ssl
- Look for the file “force-deactivate.txt”, and rename it to “force-deactivate.php”.
- Open your browser, and open the following url: http://www.yourdomain.com/wp-content/plugins/really-simple-ssl/force-deactivate.php (don’t forget to change yourdomain.com in your own domain.
- Clear your browser cache, or visit your site with another browser to prevent the browser from redirecting you to https.
Important! Take care to use http://, and not https://. If you don’t have an SSL certificate, the deactivation page won’t load on https!
It is possible a security plugin will block the deactivation url. If that happens, deactivate the security plugins and caching plugins you are running by renaming those folders temporarily.
The plugin is now deactivated, and you should be able to access the admin again.
Did you already delete the plugin? Download it from the wordpress repository, upload it in your plugins directory (unzipped), then follow the previous steps.
If this didn’t work
You can always do a manual uninstall