WordPress multisite domain mapping and subdomain dashboard access


It seems to be a common problem that one cannot access the dashboard of the new sites after setting up a WordPress multisite network. My Googling showed at least 8 different problems and solutions. Here is what I met and my fix:

1) After you setup the standard multisite network, you should be able to create site1.main.com and site2.main.com, and be able to access their dashboard.

SiteAdmin->Tools->Domain Mapping

Fig.1 setup in single site

2) You can then setup the WordPress MU Domain Mapping plugin. This will enable you to map site2.main.com to site2.com. (You need to own site2.com and be able to setup the DNS record and/or virtual host mapping.) Here comes the problem I met: my site2.com is working correctly, but I can’t access the dashboard of the site2.com anymore. It enters a login-loop and never goes anywhere. The URL looks something like this :

site2.com/wp-login.php?redirect=http%3A%2F%2Fsite2.com%2Fwp-admin%2F&reauth=1

3) You can do two things here:

SuperAdmin->Settings->Domains

Fig.2 setup for network

  1. Disable the Domain Mapping on network level. Go to dashboard of site2.main.com (change it back if you already set it tosite2.com). Enable the Domain mapping plugin on this site rather than on the network. Then in the “site admin dashboard->tools->Domain Mapping” set the site2.com there (Fig. 1). You will have a site2.com WP site, and a site2.main.com/wp-admin backend.
  2. Enable the Domain Mapping on network level. Besides all the official plugin setup instructions, you also need to add your site2.com in the “super admin->settings->domains” (Fig. 2). You will have a site2.com WP site and a site2.com/wp-admin backend.

I hope this will save somebody some time.

Advertisements

About wenboown

A physicist/entrepreneur/father

3 responses to “WordPress multisite domain mapping and subdomain dashboard access

  1. Johna86

    Magnificent website. Lots of useful information here. Im sending it to some friends ans also sharing in delicious. And obviously, thanks for your sweat! dfedcdadbbee

  2. foxeye

    god damn it, ive been googling for this for a while now. your post saved me from going crazy…thanks a lot.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Twitter Updates

%d bloggers like this: