Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.

share|improve this question

2 Answers 2

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

Your Answer

 
discard

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.