• I have spent a good part of the day beating my head against the wall trying to figure out the multisite domain mapping plugin. So far, I have the plugin installed. Having trouble configuring it. I have read Otto’s article about 100 times. Problem is, his article dealt with an older version of WordPress…making some of the settings a bit different.

    I have https://www.marylandfordfocus.com installed as my main/primary address. I have the DNS host (network solutions) setup with an A-record pointing to my IP address. When I login, I see the Super Admin. I want to have https://www.marylandfordfocuselectric.com use the same wordpress install but have different content. I am having trouble making the connection between
    1. adding a site
    2. Domain Mapping
    3. Domains.

    If I type in https://www.marylandfordfocuselectric.com/wp-admin it allows me to add a “subdomain” rather than the full domain.

    Basically I have 30 domain name addresses that need to point to the same wordpress install, each of the domains would have unique content. I have the domain https://www.marylandfordfocus.com setup as the hosting domain. WordPress is installed in this location.

    What am I missing?

Viewing 15 replies - 1 through 15 (of 19 total)
  • Thread Starter bbruno

    (@bbruno)

    Ok. Definitely made progress. Looks like I figured it out.
    The question I do has is how to setup separate dbase for each new domain that is added.

    Currently it is adding all the info to the same wordpress dbase. Really makes things a bit difficult to manage if I am planning on adding 25-30 separate domains.

    The question I do has is how to setup separate dbase for each new domain that is added.

    you don;t. that the whole point of using multisite is that everything is in one db.

    25-30 it can handle just fine. It’s when you get a couple hundred you need to worry.

    Remember, this is what wordpress.com uses to run their site. They have millions of blogs. They use multiple dbs, yes, but I can assure you it’s not one db for every blog.

    What difficulties to you expect to encounter? If it’s backups… you shoudl be good. Unless you are on bottom-line shared hosting from a crap company, a db backup will still run.

    Thread Starter bbruno

    (@bbruno)

    It was just ease of use, thats all. No biggie. I was just looking to make it easier to import a master dbase to start with.

    Also, otto’s article dealt with WP 3.0.

    Thread Starter bbruno

    (@bbruno)

    Yeah…thats what I figured out…ottos article dealt with something different.

    What a great plugin though. Think it will work out really well for the application that I am using it for. Thanks for the replies/help.

    No, that was my point – Otto’s post is still up to date,. you’re on 3.0.5. there’s very little difference.

    Domain mapping is what you wanted. ?? And you did figure it out, so good.

    (I’m mostly clarifying for people who will be finding this thread via searches)

    Thread Starter bbruno

    (@bbruno)

    Ok. One more question…is there any way to keep plugins turned on, basically duplicate a master so that all I have to do is change photos and content?

    Right, I have to turn on plugins on very every new site that I add. I have repeat the same process for every one. Is there a work around? Typically, I would just export a master dbase and reimport with PHP my admin. BUT the dbase is not so straightforward as it once was.

    You’d need a plugin for that.

    Hi

    I have a problem about mapping.
    I have the main wordpress on (let`s say for example) site.com and the child wordpress on child.site.com. I have setted in the dashboard that the child wordpress is mapping anothersite.com.
    I made the settings for (let`s say for example) anothersite.com to point to site.com. The problem is that when i go to anothersite.com it is being redirected to main wordpress …not the child wordpress.

    Do you know what is wrong ?

    Not without any more details, no.

    Did you put domain_mapping.php in the mu-plugins folder?

    PJ Brunet

    (@knowingart_com)

    “The question I do has is how to setup separate dbase for each new domain that is added.

    Currently it is adding all the info to the same wordpress dbase. Really makes things a bit difficult to manage if I am planning on adding 25-30 separate domains. “

    Sounds like you’re talking about different “tables”. MySQL has this strange terminology ?? If you’re on a shared account (like most people) you’re probably sharing a “database” with 1000s of other people. (By the way, this is why shared hosting is so slow.)

    From what Andrea is saying, sounds like the new “Multisite” method doesn’t give you the control to adjust options on a site-by-site basis?

    I’m considering trying the new 3.x “Multisite” for a client, but doing more research first. Right now I have multiple installs working like this and it works fine:

    $table_prefix = substr(str_replace(“-“, ”, $_SERVER[‘HTTP_HOST’]), 0, 4) . ‘_’;

    If you do it this way, you can configure each blog individually (if you want to) which is useful in my opinion.

    Maybe it would help to know what post by Otto you’re talking about, at first I thought you were talking about Olly the vpsBible guy.

    @knowingArt – when you set up multisite, you’re basically making your own wordpress.com for your clients. Yes, you can set things up individually on each blog, even tho they are all stuff in the same db.

    (users are global though)

    Thread Starter bbruno

    (@bbruno)

    @knowingArt – It does install in the same dbase. But thats where it really ends. I can login to https://www.somewhere.com/wp-admin just like I would if it was a custom, standalone install.

    In the end, it has saved me a bunch of time and headache. Now when I want to add a plugin, add it and make it a network activation. Now it shows up on each one of my domains.

    From a development standpoint, its a HUGE time savings. AND much better way of building things. Redundancy is never good when building/coding.

    Took some time to figure out how it all functions. For instance, I did not know that you needed to install multisite before you installed the multisite domain mapping. There was a whole series of steps I was missing.

    Once I understand how it all works, really like the functionality thats for sure.

    PJ Brunet

    (@knowingart_com)

    That’s one way of doing it. Or you can skip the plugin if you’re using NginX, the trick is “server_name _;”

    That’s how I do it.

    Hi – I have a WP multi-site installed with Donncha’s Mapping plug-in which seems to be working correctly. I added a parked domain (www.site2.com) and mapped it to a subdomain site i addeded via SuperAdmin. I now need https://www.site2.com to load it’s own separate content. From what I’m hearing above it seems like I need to have site2’s tables (that already have content) imported into the master database. This will mean that each mapped domain will have it’s own set of tables. 8 domains and 8 sets of tables under one master db if I’m correct. So now, how do I configure wordpress to point these domains to their respective tables?

    I see from above that is code below should be added to the wp_config. Anything else that needs to be done?

    $table_prefix = substr(str_replace("-", '', $_SERVER['HTTP_HOST']), 0, 4) . '_';

    Thanks

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Setting up Multisite Domain Mapping’ is closed to new replies.