Wordpress always redirects to https after copying to localhost
Make sure that WP_HOME
and WP_SITEURL
are set to addresses that start with http
, not https
.
These settings should be located in wp-config.php
.
define('WP_HOME','http://localhost:8888');define('WP_SITEURL','http://localhost:8888');
Make sure you aren't telling WordPress to force SSL for admin and login.
define('FORCE_SSL_LOGIN',false);define('FORCE_SSL_ADMIN',false);
I tried all the above suggestions and nothing worked. In my case some plugin was probably causing this. It started working after disabling the plugin directory by renaming it to 0_Plugins.
Now I have to manually figure out which of the plugins was causing this.
Thanks for the other tips.