How do I park secure.primary.com on top of the multisite ID:1 domain: www.primary.com (primary multisite domain)

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.

Thanks.

2 Answers
2

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       |
 +------+-----------+----------------------+----------+

Leave a Comment