Forums

multiple domain, multi site, occasionally not resolving correctly (17 posts)

  1. cmcp
    Member
    Posted 1 year ago #

    Hello

    I have a typical multi site / user / domain setup utilising the wp mu domain mapping plugin (http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/)

    Everything seems to be working fine, however occasionally when I click a link or try to access a mapped url the browser will hang, seemingly going between

    "connecting to mainsite.com"
    and
    "connecting to mapped-domain.com"

    It seems that the browser every half second jumps between the two and is stuck in a loop. The problem is resolved by a forced refresh.

    Does this sound familiar to anyone? I plan to maintain most of my web clients sites using the mu domain mapping in the future but I can't roll it out if I've not set it up correctly / it's not stable.

    Any advice greatly appreciated.

    Thanks

  2. Andrea_r
    team pirate
    Posted 1 year ago #

    Consider editing the site details so the mainsite domain is no longer there, and is replaced by the mapped domain.

  3. cmcp
    Member
    Posted 1 year ago #

    Hi Andrea, thanks for taking the time to reply to my post :)

    I am under the impression that I should keep the site_info and site_options as the subdomains (eg "mapped-domain.mainsite.com") and the domain mapping plugin takes care of all the redirects?

    There are many areas where the subdomain is mentioned (domain, siteurl, fileuploadurl)

    Are you suggesting that these inner settings should all point to the mapped-domain.com?

    Cheers

  4. cmcp
    Member
    Posted 1 year ago #

    *edit: and if so, is there documentation indicating the way these settings should be set up?

  5. Andrea_r
    team pirate
    Posted 1 year ago #

    I am under the impression that I should keep the site_info and site_options as the subdomains (eg "mapped-domain.mainsite.com") and the domain mapping plugin takes care of all the redirects?

    But they are still referenced and causing issues on your site. ;)

    There are many areas where the subdomain is mentioned (domain, siteurl, fileuploadurl)

    CHange 'em.

    Are you suggesting that these inner settings should all point to the mapped-domain.com?

    Yes. Just pick one and try it. You can always change it back.

    and if so, is there documentation indicating the way these settings should be set up?

    No, no docs, cuz it woudl be me writing it as "See this? Change it." :D

    Also there a paid version that changes 'em all anyway. Works fine.

  6. cmcp
    Member
    Posted 1 year ago #

    I have made the changes you advised.

    I am now experiencing two problems:

    • uploaded files not appearing. for some reason, the path on these have changed to the subdomain "http://mapped-domain.mainsite.com"

    • when I went to logout from mapped-domain.com i received an error saying "Unknown logout key"

    When I check the source, I see a javascript file that references the mainsite.com domain, and this seems to be the url in the browser when I get the "Unknown logout key" error.

    ------------------------------------------------

    Do you have a reference to the paid version you talk about? Or would I need to take this to Elance / WP job board?

  7. Andrea_r
    team pirate
    Posted 1 year ago #

    Yes, it;s one I sell over at wpebooks.com

  8. cmcp
    Member
    Posted 1 year ago #

    Ah forgive me, I was under the impression it was a paid version of the plugin from the author. I'll take a look at your books :)

    From early testing it seems to have resolved the domain issue. Nice one Andrea!

    --------------------------------

    I've got a few more questions related to the multi-domain setup. Am I best to ask them here, or should I be starting a new post per question?

    Eg, how many domains can the standard install handle and how does it handle the redirects? I'm thinking about setting up all my clients in this manner. In theory if I'm to take on 500 clients, will I have to look at a more stable DNS / .htaccess setup to keep the whole thing ticking over?

  9. Andrea_r
    team pirate
    Posted 1 year ago #

    Domain has little effect on the htaccess file.

    WordPress or the domain mapping plugin don't care how many you map.

    It's all down to your server - because WP & the plugin are merely interfaces.
    Yes, you can easily map 500 domains if you like. It'd be the same as having an install with 500 subdomain blogs - WP does not care.

    I outlined in my ebook how you can do this without parking each domain, and it requires at least a vps because you have to mess with apache and make a named wildcard host.

    I was under the impression it was a paid version of the plugin from the author.

    Ron is a co-author on the free plugin, but not the main author. ;) And ours is slightly different, simpler and more streamlined.

  10. cmcp
    Member
    Posted 1 year ago #

    When you say "ours", are you referring to a different plugin or different ebook?

    I'm on a VPS, server edits are not a problem. (well, the access to them aren't. doing them is another topic!)

    --------------------------------

    Have you any experience on setting up this type of system on a subdomain?

    Eg, for testing I've used my main domain. I'd like to leave this free for sales and support, possibly pointing it to a third party server.

    IF I were to set up a subdomain of my main domain and use that for all the parking and pointing, would wordpress handle this the same as long as all the settings are correct?

    For instance, I'd like all my sites to be set up and my main admin install to be at http://sites.mainsite.com, with my http://www.mainsite.com pointing elsewhere on a different server?

    So my wordpress subdomains would then be set up on
    "http://mapped1.sites.mainsite.com"
    "http://mapped2.sites.mainsite.com"
    "http://mapped3.sites.mainsite.com"
    and so on...

  11. Andrea_r
    team pirate
    Posted 1 year ago #

    No, when I say ours, I mean the one at wpebooks. Ron (wpmuguru) is my partner. ;)

    IF I were to set up a subdomain of my main domain and use that for all the parking and pointing, would wordpress handle this the same as long as all the settings are correct?

    Then you would use a CNAME, and yes WP would figure it out.

    I'd like all my sites to be set up and my main admin install to be at http://sites.mainsite.com, with my http://www.mainsite.com pointing elsewhere on a different server?

    Yep, you can do that if you know what you're doing. you'd install WP with the network at sites.mainsite.com, and NOT http://www.mainsite.com.

  12. cmcp
    Member
    Posted 1 year ago #

    Ah right I just read some of your links, Hi :) I feel I'm a bit more up to speed now! (I too had a C64 when I was younger. I had endless days of fun spending three hours at a time typing code to make the screen flash different colours!)

    --------------------------------

    Final question (and I should add, I will shortly purchase the support ebook. I'm looking to move my main client base to this setup so I feel it's important to know how the foundations will be working)...

    The mention of CNAME has me curious. Is this just like an extra step to patch the subdomain back to the main IP?

    Setting up a subdomain as a main cpanel account is not a problem, I can do that fine.

    Thanks for the links and all your advice.

  13. cmcp
    Member
    Posted 1 year ago #

    I should add - when looking on the wpebooks store, I assume what I'm after is the multisite domain mapping ebook.

    From what I gather, my setup = 1 network, multiple domains?

  14. Andrea_r
    team pirate
    Posted 1 year ago #

    Yes. :)

    The mention of CNAME has me curious. Is this just like an extra step to patch the subdomain back to the main IP?

    Yep. :)

    A records take IP addresses only.
    CNAMES direct domains & subdomains.

  15. cmcp
    Member
    Posted 1 year ago #

    With all the domain references in the site settings set to the mapped-domain.com, I'm still getting a javascript include in the source of mapped-domain.com showing as "mainsite.com"

    For example
    <script src='http://mainsite.com/?dm=3e7ea114b74a65&action=load&blogid=6&siteid=1&t=5365465128&back=http%3A%2F%2Fwww.mapped-domain.com%2F' type='text/javascript'></script>

    The reason I checked is because this morning I went onto the mapped-domain.com and got the original refresh problem, that the domain seemed stuck in a loop between the two.

  16. Troy Cawley
    Member
    Posted 1 year ago #

  17. cmcp
    Member
    Posted 1 year ago #

    Great, that's exactly what I'm looking for. Thanks Troy

    :)

Topic Closed

This topic has been closed to new replies.

About this Topic