Redirect public site to another one but allow administrators to access the old site
You should be able to catch this on template_redirect or during parse_request / pre_get_posts. Whitelist some pages like the login or your IP addresses otherwise you’ll get locked out should you sign-off. Adding 301 to the wp_redirect will help search engines. // NOTE: This code has not been tested function wpse12302015_check_user_status() { // a user … Read more