
Disable SSL if locked out Wordpress with WP Security Plugin


Over the weekend, I implemented SSL through Cloudflare and configured the WP Security plugin to have SSL on a front end and admin dashboard.
It was all ok until I decided to disable the WP Security plugin for the time being to troubleshoot my Thrive Leads issue. My WordPress admin dashboard was locked out and giving a “Redirect lookup” error.
The front end was giving problems too but I was able to make my website operational by removing HTTP to https redirection. But this didn’t work for the admin dashboard.
If you are having a similar situation then not to worry, here is how you can escape this issue.
As usual, don’t forget to take a backup of the existing configuration, which you will be modifying shortly.
- Login to your server (if you are on shared hosting then it would be your cPanel)
- Go to htdocs or root location of your WordPress website
- Edit
wp-config.php
- You will notice the following two lines where SSL is defined as true
// iThemes Security Config Details: 2
define( 'FORCE_SSL_LOGIN', true ); // Force SSL for Dashboard - Security > Settings > Secure Socket Layers (SSL) > SSL for Dashboard
define( 'FORCE_SSL_ADMIN', true ); // Force SSL for Dashboard - Security > Settings > Secure Socket Layers (SSL) > SSL for Dashboard
// END iThemes Security - Do not modify or remove this line
- Change that true to false so it should be like below.
// iThemes Security Config Details: 2
define( 'FORCE_SSL_LOGIN', false ); // Force SSL for Dashboard - Security > Settings > Secure Socket Layers (SSL) > SSL for Dashboard
define( 'FORCE_SSL_ADMIN', false ); // Force SSL for Dashboard - Security > Settings > Secure Socket Layers (SSL) > SSL for Dashboard
// END iThemes Security - Do not modify or remove this line
That’s all.
Try to access your admin dashboard and it should be ok.
More great readings on WordPress
-
Understanding 301 Redirects for BeginnersTanish Chowdhary on June 14, 2022
-
A2 Managed WordPress Hosting is for The Professional BloggerHitesh Sant on June 10, 2022
-
Top 8 Platforms to Hire WordPress DevelopersGeekflare Editorial on June 6, 2022
-
Start Your Online Shop Today with Nexcess StoreBuilderHitesh Sant on May 25, 2022
-
How to Protect Your WordPress Site with iThemes Security ProHitesh Sant on May 7, 2022
-
6 Best WordPress Accessibility Plugins in 2022Tamal Das on April 22, 2022
Join Geekflare Newsletter
Every week we share trending articles and tools in our newsletter. More than 10,000 people enjoy reading, and you will love it too.