I have read many solutions out there for sharing users and checked out the other posts on here, but can't find specifically what I'm after, as they all talk about users on the same database. Understand WP-config file and defining the custom user table, but I don't think this will work in my case as my setup is on two different databases. Some of the solutions are also quite old and sure they don't function with 4.1.1 anymore.

I have two different sites, each on their own database. Site A is where I want to share the user tables from. Site B is a multisite setup using subdomains. I need user data to be shared from site A to site B and any subdomains that site B may include. Site B will probably have in excess of 300 sites.

Users visiting site B, or any of its subdomains, need to be redirected to Site A for registration before being allowed access. What's the best way to achieve this?

Both sites will be on the same server so I hoping this will make things a little easier.

Any suggestions on how I can create the data to be shared? Ideally would like to do this without the use of plugins.

The easiest thing basedo n the information you provided would be to make Site A part of the Site B multisite network. Then your sites would definitely be sharing the same user table since it is one network.

You can also look into domain mapping to make Site A have a totally different domain name from Site B and it's subdomains.

  • domain mapping would work for sure. Will look into that approach...thanks – JCJ Mar 18 '15 at 12:21

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.