WordPress wp-admin redirects to https on local

I was deploying a WordPress website locally to perform some changes. I didn’t build it so I’m not sure how it was configured. I found and replaced all instances of https://example.com to http://example.com cleared all caching but http://example.com/wp-admin was redirecting to https://example.com/wp-admin and creating an infinite loop. I also checked the there are redirects on .htaccess. No luck. I have no SSL cert on my local einvorment.

The fix

Go to wp-config.php and look for define(‘FORCE_SSL_ADMIN’, true); Comment it out, clear the cache and try again.

Leave a comment

Your email address will not be published. Required fields are marked *