37 votes
Accepted

Cookies in Multisite network where sites have their own domain name?

First clear your browser's cache (including cookies), and your server's cache (e.g. cache plugins). Then set the following in your wp-config.php file: define('ADMIN_COOKIE_PATH', '/'); define('...
Scott's user avatar
  • 1,315
34 votes
Accepted

How to use Wordpress Multisite With Different Domain Names?

There seems to always be a bit on confusion on this topic. Perhaps WordPress could do a better job guiding it's users in this process. Although, I suppose Multi-site wasn't intended to be used for TLD'...
Michael Ecklund's user avatar
9 votes

Cookies in Multisite network where sites have their own domain name?

Using WordPress version 4.9.4. I was getting the cookie error and looked through various help options and eventually solved it by using a parts of Scott's fix. (Note: I didn't do any cookie cache ...
user140609's user avatar
7 votes

How to use Wordpress Multisite With Different Domain Names?

WordPress now has a support article on this. Essentially the recommended steps are as outlined by David & Michael: Map the domain name in DNS to your server Make sure this domain is registered on ...
rxmd's user avatar
  • 71
5 votes
Accepted

How to use the sunrise.php script for Multisite network domain mapping?

As per the instructions for setting up WordPress MU Domain Mapping, sunrise.php needs to be placed directly in your /wp-content directory. It's not a plugin in the traditional sense, so can't be ...
Tim Malone's user avatar
  • 4,734
5 votes

How to use Wordpress Multisite With Different Domain Names?

It was made possible without using a plugin a few releases ago (can't remember the concrete release but the feature has been there for a while now). However, if you start from scratch, you should ...
David's user avatar
  • 3,275
4 votes

Cookies in Multisite network where sites have their own domain name?

Finally after hours, literally, of troubleshooting I was able to get this resolved on the AWS Lightsail Bitnami Multisite Wordpress (WordPress 5.0.4) instance by performing the following: Ensure the ...
George Drew's user avatar
4 votes
Accepted

Domain mapping (without plugin) in 4.5.x multisite?

Here's an example of a solution I configured, which leaves the site in the network, but establishes a domain map from any registered domain, to the network. It makes the network site appear to be a ...
C C's user avatar
  • 1,948
3 votes
Accepted

MU domain mapping login issue

Strangely it worked for me (on more than one multisites) to set SUBDOMAIN_INSTALL to false. To be honest, I hadn't had time to investigate further why ... define('SUBDOMAIN_INSTALL', false);
Martin from WP-Stars.com's user avatar
3 votes
Accepted

WP Multisite - domain mapping to domain.com and separate site to domain.com/help

Yes, this is possible (see https://wordpress.org/support/article/create-a-network/). For sub-domains you'll need to confirm that your DNS has a wildcard entry for your domain. So, based on your root ...
deronimo's user avatar
  • 166
3 votes
Accepted

How do I use different domain for subdomains in WP Multisite?

Let's establish the baseline: it is possible to have the main site in example-domain-x.com and all subsites subdomains in example-domain-y.com. You just add subdomain1.example-domain-y.com (or ...
Celso Bessa's user avatar
  • 1,108
2 votes

Domain mapping with Multisite links are wrong

I figured this out right after I posted the question but thought it would help someone who ran into the same issue. I have to go to: Network Admin -> Sites -> edit a site -> Settings -> change "site ...
dcp3450's user avatar
  • 455
2 votes

Cookies in Multisite network where sites have their own domain name?

I just finished troubleshooting a similar issue with subdomain multisite. With: define('COOKIE_DOMAIN', $_SERVER['HTTP_HOST']); The site was still throwing a cookie error and in some instances of ...
Ruben Apolinar's user avatar
2 votes
Accepted

How do I make my particular WordPress public?

Let's assume you've installed WordPress as described here, directly in a folders named 816 under your xampp/htdocs/, and this, without any alterations (modifying settings or any configurations to ...
nyedidikeke's user avatar
2 votes
Accepted

Create rewriterules for different domains in htaccess file with WP multisite

If you wanted to target a specific domain then you need a condition (RewriteCond directive), preceding the RewriteRule that checks for the specific domain (Host: header). For example: RewriteCond %{...
MrWhite's user avatar
  • 3,881
2 votes

Wordpress multisite with different domain

I believe that you have to go to the Network Admin (the 'master' admin), then Sites, then mouse over the site you wish to change, select Edit. So the process is not done from the sub-site's Dashboard, ...
Rick Hellewell's user avatar
1 vote
Accepted

Login cookie across multiple domains on network w/ mapping

WordPress is deciding whether you are logged in or not by checking AUTH_COOKIE and LOGGED_IN_COOKIE. As you have noticed these cookies are set in the same, let,s say, A domain which your site is. ...
kierzniak's user avatar
  • 2,432
1 vote

How to host blog on separate domain from main site

Assumption 1 Wrong. I have a couple of WordPress installations in subfolders, some redirected to sub-domain, some not. If you set up the setting properly, there isn't any issue with this. Searching ...
Johansson's user avatar
  • 15.3k
1 vote
Accepted

WordPress Multisite with subdomains on different domains

Did you try to assign the appropriate subdomains using 301 redirections? I think it would be possible if you run all these websites on one server. Create multisite with subdomains in one domain ...
skowi's user avatar
  • 61
1 vote

Cookies in Multisite network where sites have their own domain name?

Don't know about you folks, but for me it helped surprisingly much to change this define( 'COOKIEDOMAIN', '' ); to this define( 'COOKIE_DOMAIN', '' ); And yes, I still dare to consider myself an ...
jgangso's user avatar
  • 1,463
1 vote

Multiple domains showing same content

There are several problems in your logic, as Wordpress won't know which domain is going to handle actions. Even if you use a symlink from the other domain to point to .com domain, or even if you use ...
appartisan's user avatar
1 vote

WordPress MU Domain Mapping Customizer Error

After much trial and error, I found the cause to be a conflict with the WP Super Cache plugin, I had to disable the following from my wp-config.php file: define( 'WPCACHEHOME', '/var/www/html/wp-...
Keith Petrillo's user avatar
1 vote

MU domain mapping login issue

For anyone still struggling with this. It turned out it was the sunrise code that was causing the conflict: <?php if ( !defined( 'SUNRISE_LOADED' ) ) define( 'SUNRISE_LOADED', 1 ); if ( ...
Will Mosley's user avatar
1 vote

Cookies in Multisite network where sites have their own domain name?

So I was having this issue as well and came across a lot of solutions like the ones mentioned here but they didn't work. What did work was simply adding the following to the multisite configuration in ...
ronaut's user avatar
  • 11
1 vote

Cookies in Multisite network where sites have their own domain name?

I commented out define('SUNRISE', 'on'); /* define('SUNRISE', 'on'); */ define('COOKIE_DOMAIN', $_SERVER['HTTP_HOST']); define('COOKIE_DOMAIN', ''); Then, I don't see the below error message: ...
Joone Hur's user avatar
1 vote
Accepted

Check if current site ID and value exist in WPDB

Note that you should be able to map domains without 3rd party plugins. Here's an untested suggestion for your callback in your current situation: global $wpdb; // Nothing to do if not multisite if( ...
birgire's user avatar
  • 67.1k
1 vote

WordPress multisite with domains and subdomains

Here are the high level steps if you are on 4.2 or greater: Have your multisite hosted at a dedicated IP address. Go into your network dashboard My Sites > Network Admin > Sites and edit the ...
C C's user avatar
  • 1,948
1 vote
Accepted

how to get my WP site's IP?

This is more a general hosting question, rather than WordPress. Nonetheless, since you mentioned that you have your website on WordPress.com, you can have your new domain point to your WordPress site ...
Ethan O'Sullivan's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible