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’]);

Migrate single site to Multisites with plugins, cPanel and already working subdomains

1) No data/settings/options are lost, very rarely deleted, when deactivating plugins. 2) You do not need a wildcard subdomain unless you want to let visitors register for/create their own site/blog. But it doesn’t hurt to have it. Else: explicitly add all subdomains in zone file. 3) In case you want several domains to map to … Read more

How to upload/update theme from local – bitbucket – shared hosting?

In a nutshell there are two basic approaches to this: Build elsewhere and upload (in one way or another) result to the target server Do everything right on target server There is variety of solutions that will do either of this or some mix of the two. The simplest possible way for the conditions you … Read more