turn single domain off

Your easiest route is probably to use a plugin like Restricted Site Access (disclaimer: written by my boss) to redirect a user who isn’t logged in elsewhere, like the network home or something else. There are a few other similar plugins out there. Another option would be to take the code you say you’d put … Read more

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 ); … Read more

Is there a maintenance mode in WordPress core?

Yes there is. But it is primarily meant for short interruptions (such as during upgrades) and not very user-friendly. WP creates .maintenance file in root (with timestamp info about time) to trigger it and removes after it is done. See WordPress Maintenance Mode Without a Plugin for reference. In practice using a plugin is usually … Read more