WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have a multisite setup, the primary domain needs to have www.primary.net, and secure.primary.net mapped in wordpress so the primary site's content loads on both. The problem we are facing is secure.primary.com doesn't work. secure.primary.net always ends up at: http://www.primary.net/wp-signup.php?new=secure.primary.net

The headers returned from the server are as follows:

Status: HTTP/1.1 302 Moved Temporarily Date: Tue, 16 Oct 2012 19:55:53 GMT Server: Apache Location: http://www.primary.net/wp-signup.php?new=secure.primary.net Content-Length: 0 Connection: close Content-Type: text/html; charset=utf-8

Basically I just need this to work, even if it means ripping into the core Wordpress files and making changes. I've tried various domain mapping plugins and such and nothing works correctly. One of the problems is that they don't allow mapping on the primary network domain. Any suggestions on what I can edit in WordPress or a starting point would be great.


share|improve this question
up vote 2 down vote accepted

Install WordPress MU Domain MappingPlugin, and edit the wp_domain_mapping database table.

Insert a new row for blog_id #1 manually, for example:

 |  id  |  blog_id  |  domain              |  active  |
 |  5   |  1        |  secure.primary.com  |  1       |
share|improve this answer

There is a table where WordPress stores the Path->Blog ID references. IF you add another record that points your second path to Blog ID 1 along with the regular entry, you might solve your problem.

I don't have an MS setup right now to look into the Database structure.

share|improve this answer
Thanks, that gave me an idea. – Jerry Tunin Dec 6 '12 at 15:36

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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