WordPress.org

Ready to get started?Download WordPress

Forums

WordPress MU Domain Mapping
How Set Display URL to 'www.adomainname.com'? (6 posts)

  1. planewryter
    Member
    Posted 12 months ago #

    TO: The fine folks who support WP MU Domain Mapping.

    FROM: The Slow Kid in This Class

    RE: How Set the Display URL for a WP MU DM provisioned site to 'www.somedomainname.com'?

    BACKGROUND: Yesterday, I provisioned an AWS EC2 Bitnami for WordPress Multisite AMI which has WP MU DM v0.5.4.3 pre-configured.

    Today, I've added a couple of test sites to WP MU DM...and am stumped.

    After 2-3 hours trolling around the web reading docs, blogs and WP MU DM insights...I'm even more confused--and am making this plea on behalf of all equally confused, yet anxious to use, WP MU DM users.

    Question 1. In the "Domains" administrative pane, what does the "Primary" option mean? What does it do? What happens if it is checked? Not checked?

    Question 2. If the desired Display URL is 'www.thisisadomainname.com', is this string input into New Domain-->Domain? Then is the Primary option selected? (BTW, I tried this, and the Display URL remains http://thisisadomianname.com.)

    Question 3. What happens when New Domain-->Domain is set to 'thisisadomainname.com'? Then, what happens if the Primary option is selected? Turned off?

    Question 4 (the biggie): If both 'www.somedomain.com' and 'somedomain.com' are desired (with 'www.somedomain.com' being reflected in the Display URL)--does this mean that two entries (one for each) are made in New Domain-->Domain? If so, does one, and only one, of the two get the Primary option turned ON?

    FWIW: I've tried all the combinations above and none of them result in http://www.thisisadomainname.com. Seems like, no matter what configuration options I set, the Display URL is always: 'http://thisisadomainname.com'.

    Your comments...clarifications...suggestions are invited & welcomed with thanks.

    Rick

    PS: If there is a documentation set somewhere which clearly explains the Primary option as well as how to set the Display URL to 'http://www.something.com' ... a link would be greatly appreciated (and, be assured, I've looked for, and read many, many pages which do not clearly explain all this).

    http://wordpress.org/plugins/wordpress-mu-domain-mapping/

  2. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 12 months ago #

    I provisioned an AWS EC2 Bitnami for WordPress Multisite AMI which has WP MU DM v0.5.4.3 pre-configured.

    I had never heard of this until you posted above.

    "Question 1" - primary domain is the URL that DM will redirect the other URLs to. Initially you have at least 2 URLS - the original URL and the domain map. If you want the domain to redirect to the original URL set the original as the primary.

    "Question 2 & 3" - if you use the www version then DM will only catch the www version of the domain. If you use the non-www then the www with redirect to the non-www.

    "Question 4" - To eliminate unnecessary load on your server for domains where www is the primary domain use a htaccess rewrite rule to redirect the non-www to the www.

  3. planewryter
    Member
    Posted 12 months ago #

    @Ron,

    Thanks for the reply.

    With respect to your response, would you please clarify:

    What is meant by the

    "...original URL?"

    And, the

    "...domain map?"

    Could you post an example which illustrates what they are and how they should be set?

    Thanks!

    PS: Here's a link to Amazon's AWS "Marketplace," which is where items such as Bitnami AMI's can be located, then provisioned in AWS: https://aws.amazon.com/marketplace/pp/B007OXRX74/ref=portal_asin_url

    Hope this helps!

  4. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 12 months ago #

    Before you added the domain map you created a new sub site which has a URL. That URL is the original URL.

    The domain you adding in the domain mapping tool for that sub site is the domain map.

  5. planewryter
    Member
    Posted 12 months ago #

    @Ron,

    Thanks for the reply; regrets, I still don’t get the idea of PRIMARY and NOT PRIMARY.

    Perhaps you'd be so kind as to review and critique the timeline below…let me know where I mis-understood…then let me know what to do? Your assistance would be appreciated.

    Assume a WP Multisite instance whose “Main” domain is at: http://www.maindomain.com

    Assume the Domain Registrar DNS File for ‘fifthtest.com’ includes an A Host (‘@’) record that resolves to the IP address for maindomain.com.

    *Also, assume wildcard sub-domains for maindomain.com have been enabled. *.maindomain.com resolves to maindomain.com.

    Assume the DNS File for fifthtest.com includes a CNAME for ‘www’ that resolves to ‘@’.

    Assume you’re on a Mac with OS X 10.8, using Safari, and you login to maindomain's WP Multisite (WP-MU) instance.

    Then, in WP-MU, use Network Admin→ Sites→ Add [a] New [Site]

    In Add New:
    Enter 'fifthtest' in Site Address (which appears to resolve to fifthtest.maindomain.com)
    Enter “This is Fifth WP-MS Test Site” in Site Title
    Enter info@maindomain.com for Admin Email
    Click on WP-MU Add Site button
    Note the ID in Safari’s Address Bar URL = 5

    Navigate to WP-MU Network Admin→Setting→Domains

    Set Site ID to 5
    Set Domain to 'fifthtest.com'
    Set Primary to ON
    Click on Save

    Navigate to WP-MU Network Admin→Sites
    Locate Domain ‘fifthtest.maindomain.com’
    Highlight fifthtest.maindomain.com
    Click on fifthtest.maindomain.com ‘s Dashboard…verify the site was created
    Click on WP-MU View Site…wait 90 seconds…wonder why nothing is displayed
    After nearly 3 minutes…marvel in surprise when fifthtest.com’s home page is displayed
    (Then, despair at the response time)

    Run same test as above on fresh Chrome instance
    Note that Chrome FAILS to display fifthtest.com with the diagnostic message:
    "The webpage at http://www.fifthtest.com/ has resulted in too many redirects."
    Wonder why.
    Stare at WP-MU Admin panels for 15 minutes.
    Google ~20 variations of "How to configure WordPress MU Domain Mapping"
    In despair, DRAFT this post

    Navigate to WP-MU Network Admin→Setting→Domains

    Set Site ID to 5
    Set Domain to http://www.fifthtest.com
    Set Primary to OFF
    Click on Save

    Navigate to Network Admin→Sites
    Locate Domain ‘fifthtest.maindomain.com’
    Highlight fifthtest.maindomain.com
    Click on fifthtest.maindomain.com ‘s Dashboard…again, verify the site has been created
    Click on View Site…wait…wait some more…observe nothing happens

    Revisit DRAFT of this post
    Edit DRAFT
    Post this Plea for assistance

    @Ron, If there is a source for detailed WP MU documentation (more explanatory than wordpress.com)…please let me know…I’d gleefully access it and read it in depth.

    Thank you very much from a thoroughly confused supplicant.

  6. Ron Rennick
    MultiSite Guru
    Plugin Author

    Posted 11 months ago #

    Perhaps you'd be so kind as to review and critique the timeline below

    Here goes...

    Assume ...

    If I assume you have everything set up correctly then I'm not going to get very far in helping you solve your issue.

    Wonder why.
    Stare at WP-MU Admin panels for 15 minutes.
    Google ~20 variations of "How to configure WordPress MU Domain Mapping"
    In despair, DRAFT this post

    I appreciate your frustration. However adding commentary like this makes it more difficult to read the information you have provided.

    On with some troubleshooting assistance...

    The 'Too many redirects' message is an indicator that there are one or more rewrite rules in your htaccess that are rewriting a URL to itself.

    When you created the new site did you check to see if the front end of the site loaded before you added the domain map? If so, how long did loading the front end take? If it does not load within a second or two then there is something wrong with your webserver configuration (possibly the rewrite issue). If that's the case, contact your support for your EC2 instance.

    PRIMARY - visit http://rennickmedia.org, http://rennickmedia.net & http://rennickmedia.com in separate tabs. All 3 sites are domain mapped to the same site. The .com domain is the primary domain.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.