WordPress on localhost still points to the live site

I have found the answer… well to my situation anyway. It was something related to multisite. Removing the following from wp-config.php got it to work for me.

Removed

define('WP_ALLOW_MULTISITE', true);
define( 'MULTISITE', true );
define( 'SUBDOMAIN_INSTALL', false );
$base="https://wordpress.stackexchange.com/";
define( 'DOMAIN_CURRENT_SITE', 'www.mywebsite.co.uk' );
define( 'PATH_CURRENT_SITE', "https://wordpress.stackexchange.com/" );
define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 1 );

Although I had mine setup for multisite I wasn’t really using it so I thought I would try and set it up as single site. As soon as I tried the above it worked.

Leave a Comment