Shared hosting, multiple sites, can’t log in to WP due to .htaccess redirection

@define(‘ADMIN_COOKIE_PATH’, “https://wordpress.stackexchange.com/”); Putting this at the top of wp-config.php allows me to log in. Not sure if this is the proper way to set everything up, but it works… EDIT That only solved half of the problem. Permalinks were then broken. @toscho had the proper suggestion for anyone who may see this and has a … Read more

Same database; different WordPress

You need to set the WP_SITEURL and WP_HOME in domainB.com’s wp-config.php file. Please add below code. define(‘WP_SITEURL’, ‘http://’ . $_SERVER[‘HTTP_HOST’]); define(‘WP_HOME’, ‘http://’ . $_SERVER[‘HTTP_HOST’]); In your server SSL setup then used below code define(‘WP_SITEURL’, ‘https://’ . $_SERVER[‘HTTP_HOST’]); define(‘WP_HOME’, ‘https://’ . $_SERVER[‘HTTP_HOST’]);