It is important that you set the constant COOKIE_DOMAIN
in the wp-config.php
define( 'COOKIE_DOMAIN', '' );
The value must be empty, otherwise WordPress will always set it to your network’s $current_site->domain
and you won’t be able to login into any of the other sites.
From core:
/**
* @since 2.0.0
*/
if ( !defined('COOKIE_DOMAIN') && is_subdomain_install() ) {
if ( !empty( $current_site->cookie_domain ) )
define('COOKIE_DOMAIN', '.' . $current_site->cookie_domain);
else
define('COOKIE_DOMAIN', '.' . $current_site->domain);
}
Now you can set a domain in the settings of each site in the network.
Related Posts:
- Can a multisite’s blogs be accessible from two different sub-domains?
- WP Multisite development with Mamp Pro and wildcard subdomains, not really working for me
- SSL wildcard issue for wp multisite subdomains
- What is the best way to load the WP environment in a subdomain of my multisite WordPress install?
- Wildcard subdomain for the same site
- Benefits or Problems for using Sub-Directory vs Sub-Domain install of WP Network
- Create multiple subdomains for multi-site from a database
- WordPress Multisite. Can domain be used instead of subdomain?
- NGinx + WordPress Subdomain Multi with core in Subdirectory
- Set subdomains live in a next step
- Multisite installation combining subdomains and subdirectories
- How does wordpress multisite manage subdomains?
- Why can’t a WordPress network (multisite) in it’s own folder use subdomains?
- Subdomain multisite gives 404 on sub sites
- Add New Sub Site from the WordPress back end then in sub site options table option_value must be with https
- Testing Multisites with vagrant or Can I use multisite with only an IP address (without domain name)
- Changing Multisite URL after the subsite has been in use
- Non-wordpress subdomains on Multisite Installation
- Sub-subdomain getting redirected to main domain
- Possible to create a multisite network where the main site is non-WP?
- On WordPress Network(multisite), Sub Blogs in Subdirectories or Subdomains? What’s better?
- Multisite Subdomain Using More Resources Than Others?
- Changing admin sub-domain in WordPress multisite
- Subdomain login problems
- Change multi-site installation from sub-domains to sub-directories
- How can I have multiple URLs pointing to single WordPress installation?
- Not able to access dashboard of subdomain
- Wordrpess Subdomains (Multi-Site) without Wildcard
- How to Redirect login User with Mapped Domiain Primary blog Url to Original Sub-site Url
- Can I use two different domain names with a WordPress multisite network?
- WP MU – Accessing ‘Domain-Mapped’ WP-Admin with a subdomain
- Icon font not working on subdomains of multisite
- WP Multisite – domain mapping to domain.com and separate site to domain.com/help
- Child Site doesn’t appear in the Network menu
- WordPress Multisite/Network – How to use a subdomain as main blog and subdomain for child sites
- WPMU Development Environment
- turn single domain off
- Redirect subdomain in Multisite installation?
- problem with main site (root domain) redirects to subdomain (multisite)
- Multiple wordpress installations that shares WordPress & Theme but with separated database
- How to redirect one page on the subdomain
- Start with multi-site feature now or later?
- Multisite – 404 when accessing sub-sites
- Migrating wordpress multisite and domain mapping plugin
- Create subdomain out of sight the wp multisite
- Nginx Wildcard SSL with WordPress Multisite Subdomains
- Is the Multi site functionality a viable option for Country and Language targeting?
- Multisite not using subdomains as hostname in from address when sending emails
- Multisite – Looking for ideas to best manage a main site change
- ERR_TOO_MANY_REDIRECTS when i config my subdomains
- My subdomain on WordPress Multisite has gone
- Redirect to localhost after installing Multisite on server
- Login problems on multisite installation with different domains
- One Domain, Two Installs of WordPress
- MU/Subdomains + Domain Mapping + SSL?
- How to show only blog-domain instead of the whole permalink in the loop
- When creating a multisite, the sub-folders option is not available
- WordPress MU subdomain vhost
- wp_get_attachment_image_src on multisite
- Install multisite wordpress on a subdomain and map to top level domains
- Creating a subdomain network in a subdomain
- How to query blogs posts of WordPress sub domain?
- WordPress Multisites or Multiple WP Single sites?
- Https and Http Login Issue on WordPress Multisite
- How to use different domains subdomains in WP multisite? [duplicate]
- Multisite on single wordpress
- Should i install multiple wordpress for one site?
- Can’t create a subdomain network – and WP is installed in webroot, not a folder
- Installing other applications alongside WordPress multisite and configuring dns routing
- Multisite for main in subdirectory, subdomain and subfolders (EN/ES)
- Subdomain is not working
- WordPress Multisite and how to apply sef urls only to specific sites
- How can I have two or more WordPress Pro (paid) themes that form a single website?
- multisite installed on subdomain now want another subsite on subdirectory
- WordPress Multisite loads wrong subdomain dashboard
- After switch domain, some parts of my site still point to my old domain
- WordPress Multisite with Wildcard Certificates not mapping correctly
- Looking for most efficient way to ‘deploy’ single wordpress page to multiple external subdomains
- Multisite installation steps?
- How to convert multisite subdomain from http to https
- Installing other applications alongside WordPress multisite subdomains
- Multisite – SMTP not working on other network sites
- Multisite install on a sub-directory
- How to connect existing subdomains to new wordpress multisite?
- WordPress Multisite Network Subdomain
- Single sign on to sub-sites in Multisite Network
- Multisite WordPress Configurtion
- Using both subdirectory and subdomains in Multisite
- How to configure CNAMES to be part of a WordPress Network
- Multisite: Run a subdomain install from a directory install
- Subdomain Wp-Admin Not Found
- Pointing multiple subdomains at the same WordPress Installation
- Some Subdomains on a Multisite Install Not Found
- Is it possible to put a site other than #1 as a Multisite top-level domain?
- Multi site root site installed on subdomain, with child sites as subdirectories
- Integrating WordPress for blog and other content pages in a web app
- Cookies in Multisite network where sites have their own domain name?
- Multisite subdomain site on secondary domain
- Multisite subdomain microsite on secondary domain
- wordpress multisite with already existing subdomain