Wordpress always redirects to https after copying to localhost Wordpress always redirects to https after copying to localhost wordpress wordpress

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.


You need to change .htaccess file in the root of project.Change it to this code if you want to force Http :

# BEGIN Force HTTPRewriteEngine OnRewriteCond %{SERVER_PORT} 443RewriteRule ^(.*)$ http://yourdomain.com/$1 [R=301,L]# END Force HTTP