When I copy my wordpress installation from server to a local webserver (MAMP) and try to access localhost:8888
, it always redirects http to https. So I always get an ERR_SSL_PROTOCOL_ERROR
.
I can't find the setting for this anywhere – neither in the database nor somewhere else in the wordpress files. Can anybody help?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With