It’s likely because your authentication cookie is set to dev.example.com/site1/ when you login to site1, and naturally the browser won’t pass that cookie for site2.
What you can try and do is play around with the SITECOOKIEPATH
and ADMIN_COOKIE_PATH
, which by default are set as follows:
SITECOOKIEPATH
toget_option('siteurl')
ADMIN_COOKIE_PATH
asSITECOOKIEPATH . 'wp-admin'
So changing the SITECOOKIEPATH
through your wp-config.php file to something that will be shared between both sites should work, for example /
. I’m not sure what will happen to the ADMIN_COOKIE_PATH
at that point but my guess is that the default value will not work anymore, since your wp-admin directories are in different locations. I don’t think you can set ADMIN_COOKIE_PATH
in a plugin because the default gets set quite early, so I guess you’ll have to use sunrise.php if you want to set it to something like get_option('siteurl') . 'wp-admin'
.
Related Posts:
- Benefits or Problems for using Sub-Directory vs Sub-Domain install of WP Network
- Multisite: differences between subdomain and subdirectory mode? Can it be switch after installation?
- NGinx + WordPress Subdomain Multi with core in Subdirectory
- Multisite installation combining subdomains and subdirectories
- On WordPress Network(multisite), Sub Blogs in Subdirectories or Subdomains? What’s better?
- Change multi-site installation from sub-domains to sub-directories
- How to run a subdirectory multisite install under a subdomain
- Multiple wordpress installations that shares WordPress & Theme but with separated database
- multisite subdomain behind reverse proxy
- Multisite Subdirectory with same domain subdomain
- One Domain, Two Installs of WordPress
- Multisite for main in subdirectory, subdomain and subfolders (EN/ES)
- multisite installed on subdomain now want another subsite on subdirectory
- Sub-directory domain on subdomain multisite?
- WordPress Multisite subdomains and sharing the same upload folder
- Multisite, different domains, optional subdirectory, and htaccess
- Subdirectory and domain multisite installation
- 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
- Transfer Subdomain site to Multisite setup
- “Preview Changes” button doesn’t show changes for previously published posts/pages
- 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
- Changing Multisite URL after the subsite has been in use
- Subfolder multisite issue. Themes and plugin files 404
- How do I maintain static directories on multisite subdomains?
- Multisite Subdomain Using More Resources Than Others?
- Changing admin sub-domain in WordPress multisite
- Subdomain login problems
- How can I have multiple URLs pointing to single WordPress installation?
- WordPress multisite subdirectory on nginx behind reverse proxy
- Not able to access dashboard of subdomain
- How to Redirect login User with Mapped Domiain Primary blog Url to Original Sub-site Url
- Multisite setup on IIS with subdomains
- Depth > 2 possible with multisite?
- WP Multisite – domain mapping to domain.com and separate site to domain.com/help
- Login on Multiple Sub-Domains without Multisite
- 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
- Make a user administrator to a sub directory site and a contributor to main site in multisite network
- WPMU Development Environment
- turn single domain off
- Redirect subdomain in Multisite installation?
- Enable wildcard in a WordPress Multisite (Sub-Domains)
- WordPress Multisite Wildcard Subdomains on Plesk
- Making 2 WordPress sites mutually searchable and more
- WordPress Multisite Question
- Multisite – 404 when accessing sub-sites
- Migrating wordpress multisite and domain mapping plugin
- Unable to apply theme to WordPress Network Site install
- 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
- get post id by $content (so by post content)
- My subdomain on WordPress Multisite has gone
- How to host unrelated pages on WordPress domain
- Set up Network Locally on a Flash Drive
- How to show only blog-domain instead of the whole permalink in the loop
- Multisite installation on an existing single installation
- why there is a large file named core in wpmu’s directory?
- wp_get_attachment_image_src on multisite
- WordPress in subdirectory, Multisite using subdomains Nginx
- How to query blogs posts of WordPress sub domain?
- WordPress Multisites or Multiple WP Single sites?
- Multisite on single wordpress
- How to organize my js files
- WordPress Multisite with subdomains on different domains
- Installing other applications alongside WordPress multisite and configuring dns routing
- After setting up multisite on localhost, requests to localhost redirect to production domain
- Can I use the same Folder name as a Multisite Blog?
- Infamous admin login redirect
- Can I run both a wordpress blog plus another service(ex. a Shopify store) on the same domain?
- How to update wordpress content of wordpress multi-site subdomain
- Multisite Subdomain Change
- Structure of multilingual and multiregional directory listing website for translation
- Using WordPress multisite for subsites only
- How to convert multisite subdomain from http to https
- Multisite – SMTP not working on other network sites
- new WPMS site not working / Q setting up new site/subdomain
- Multisite install on a sub-directory
- Using multisite, how can I get two different sites on the network to have different active themes?
- Single sign on to sub-sites in Multisite Network
- Max number of sub folders
- Nested folder paths for WordPress multisite
- WordPress Multisite redirect loop
- Installed in root, want second in subdirectory
- How to configure CNAMES to be part of a WordPress Network
- Multisite: Run a subdomain install from a directory install
- Multisite installation without using domain root
- How to put a Custom Folder under one sub-site of Multisite WP?
- How can I set up a completely separate (not multisite) WordPress installation as a subdirectory of an existing WordPress blog?
- Pointing multiple subdomains at the same WordPress Installation
- Is it possible to put a site other than #1 as a Multisite top-level domain?
- Is it possible to install a different wordpress installation in a subdirectory? [duplicate]
- Cookies in Multisite network where sites have their own domain name?
- Multisite subdomain site on secondary domain
- wordpress multisite with already existing subdomain