WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Combining 3 blogs into one multisite blog (29 posts)

  1. iceq
    Member
    Posted 2 years ago #

    Hi. I have 3 blogs on different subdomains of the same main domain. I want to combine them in one multisite because they share many plugins and no need to have all that duplicate content.

    The problem is that my 3 blogs are currently on subdomains, and I want them to remain like that, under the same domain, but become part of a multisite network rather than independent WP istallations.

    This tutorial assumes that the old blogs arent on the same domain, but in my case they are.
    So what is the correct way of merging 3 blogs into one, while still keeping them on the same sub domains under the same main domain ?

    Thanx

  2. Probably the easiest would be to make new subdomains.

    That is if you're using foobar, zorkman and bazbot for your subdomains, on your MultiSite network make foobr2, zorkmn2 and bazbt2 (the names are important, hang on to that) and export them. foobar into foobr2 etc etc.

    THEN. Design your sites how you like them, get them looking right.

    Once you're done, search/replace your DB, looking for foobr2. and replace with foobar. (yes, the . is important). That will avoid issues with Serialization.

    Then you just delete the old named domains and let wildcard take over.

  3. iceq
    Member
    Posted 2 years ago #

    Thank you Ipstenu. Okay so basically I have to create new subdomains and move the old sites into them, then in the multisite's DB, replacing every NEWSUBDOMAIN. with OLDSUBDOMAIN.
    Will this procedure not affect the current sub domain's ranking?
    BTW, could you please also relate to the main domain? currently the main domain is empty , but after creating the multisite I want the main domain to show the contents of all 3 subsites (sub domains) using Sitewide tags. Will that be possible?
    Ipstenu if I am willing you to do that for me do you do it and how much ?
    If so please send me on iceq and the domain is hotmail.co.uk

  4. Okay so basically I have to create new subdomains and move the old sites into them, then in the multisite's DB, replacing every NEWSUBDOMAIN. with OLDSUBDOMAIN.

    Yep.

    Will this procedure not affect the current sub domain's ranking?

    Shouldn't unless you change the URL structure.

    after creating the multisite I want the main domain to show the contents of all 3 subsites (sub domains) using Sitewide tags. Will that be possible?

    Yes :)

    Ipstenu if I am willing you to do that for me do you do it and how much ?

    I'm not currently for hire, but thank you. Check out http://codepoet.com or http://jobs.wordpress.net to hire people.

  5. iceq
    Member
    Posted 2 years ago #

    Okay. will keep you updated. Thank you again.

  6. iceq
    Member
    Posted 2 years ago #

    Hi again.

    I created the subdomains and installed and configred Multisite.
    I created sub sites and gave them the same names as the new subdomains I created.. for instance x1.al-rasid.com x2.al-rasid.com

    But now accessing x1.al-rasid.com gives :
    Error Code 11001: Host not found
    I used MU Domain Mapping plugin, added entered my server's IP address in the plugin settings then created a new mapping, and entered the x1.al-rasid.com and pointed it to the respective subsite ID, but that throws the same error.

    What did I miss ?

  7. Why are you using a domain mapping plugin?

    You didn't mention you needed to map domains, you were talking about SUB domains. Different things. Domain mapping is to point seconddomain.com to use site2.domain.com

  8. iceq
    Member
    Posted 2 years ago #

    Hi Ipstenu. I only used the plugin after the normal way failed !
    As I said above, I firstly created new subdomains and then created new subsites and gave them the same names as the new sub domains (my Network was for some reason automatically configured to work with subdomains rather than sub directories).. But that did not work, then I tried with the plugin.

  9. If you're not mapping DOMAINS, remove the plugin and stop with that :)

    I created the subdomains and installed and configred Multisite.
    I created sub sites and gave them the same names as the new subdomains I created.. for instance x1.al-rasid.com x2.al-rasid.com

    Okay, is x1 the name of the existing subdomain or the temporary new one?

  10. iceq
    Member
    Posted 2 years ago #

    X1 , X2 , X3 are the new temoprary sub domains, that look exactly like the names of the new 3 subsites I created, which were configured to be accessible via subdomains (the same sub domain names I created , namely x1, x2 , x3).

  11. Did you set up wildcard subdomains?

  12. iceq
    Member
    Posted 2 years ago #

    guess what. I have no idea what that is. But since subdomains used to function fine (still working fine, actually), I guess that I HAVE set that thing up before :)

  13. Okay. Actually no :) We should assume you did NOT set that up before.

    How did you make a subdomain for x1, x2 and x3?

    Please note, I'm not asking you to go make subdomains, I'm asking what you DID. If you did nothing, DO NOT GO MAKE THEM. Just tell us what you did.

  14. iceq
    Member
    Posted 2 years ago #

    I assume you're asking how I created them on my hosting account.
    I simply logged into cpanel, went to domains manager, created a new subdomain after I selected the main domain it will be associated with. Among the options it asks about the directory with which the sub domain will be connected, and I entered anything because I want to delete that later and point the sub domain to the existing folder.

  15. Okay :) That's great information. Because it tells me what you might have done wrong.

    If you're familiar with traditional subdomains, you get a 'directory' like /public_html/x1

    With Multisite, you want those directories to point to /public_html/, which is where you installed WordPress.

    So delete the subdomains for x1, x2 and x2 out of cpanel, and do this instead: Make one called *

    Yeah, just the star. Have it point to the 'root' of your site, where WordPress is installed. See if that works. And that is called a wildcard subdomain.

  16. iceq
    Member
    Posted 2 years ago #

    Sorry but your comment was a bit vague to me.

    In the beginning you advised me to create 3 new subdomains, which I did.
    Now you said "So delete the subdomains for x1, x2 and x2" ..Did you mean "delete the subdirectories" and not "subdomains" ?
    Anyway I deleted the subdomains, and then, when creating a (*) subdomain, Hostmonster automatically gives it the path public_html/wildcard
    and I created it.

  17. Yes, but what I said was this as well:

    on your MultiSite network make foobr2, zorkmn2 and bazbt2 (the names are important, hang on to that) and export them. foobar into foobr2 etc etc.

    I was assuming (bad me) you had already read the 'Create a Network' document, and what IT tells you about how to use Subdomains.

    http://codex.wordpress.org/Create_A_Network

    You don't HAVE to use WildCard Subdomains, but what they do is make it so 'anything'.domain.com is handled by WP unless it's been defined in cpanel.

    If you want to manually create subdomains, like you did, that's fine, but you MUST point them to the main install.

    You can try editing the subdomains for x1, x2 and x2 in cpanel, and ponit them one folder up (/public_html/). Then delete the folders from the server for x1, x2 and x3

  18. iceq
    Member
    Posted 2 years ago #

    I am very confused :S

    Okay, Now I no longer have the new subdomains. I have the old subdomains that are currently working as normal.
    I have a *.domain.com whose DOCUMENT ROOT is /public_html/wildcard (I could not choose anything else when I created it)

    Do I keep it or not?
    Or do you want me to create the subdomains again in cpanel (x1, x2, x3) and make their names match exactly the subdomains that my WP Multisite gave to the new sub sites when I created them ?
    Thank you for your patience :)

  19. I have a *.domain.com whose DOCUMENT ROOT is /public_html/wildcard (I could not choose anything else when I created it)

    Can you change that to poitn to JUST /public_html/ ?

  20. iceq
    Member
    Posted 2 years ago #

    Okay I have read the whole post again and I think I have a better understanding this time:

    1- I can either use a wildcard domain (*.DOMAIN.com) which acts like a forwarding rule: any subdomain that the browser requests is automatically forwarded to the directory I sepcified, and it should be where the Multisite installation is (in my case, Public_html/MULTISITE , yes, I dont have it directly inside public_html because there are other WP installations there).

    2- OR, I create the subdomains for each sub-site that are actually going to be requested by the browsers (when a visitor visits the corresponding sub-site , for instance), and point the subdomains to the the Mulltisite's path, in my case "Public_html/MULTISITE".

    Okay. But the question is, when a user visits "subsite1.DOMAIN.com" , and he is taken to Public_html/MULTISITE (either because of the wildcard or because of the subdomain that also points to Public_html/MULTISITE), how will he get to the requested sub site???

    :))

  21. iceq
    Member
    Posted 2 years ago #

    Forgot to say, I currently have both the wilecard domain and 3 new temporary domains, all pointing to Public_html/MULTISITE but of course none of the sub site's links work.

  22. iceq
    Member
    Posted 2 years ago #

  23. Hold your britches, son, I have a job and a life and sometimes I'm busy.

    But the question is, when a user visits "subsite1.DOMAIN.com" , and he is taken to Public_html/MULTISITE (either because of the wildcard or because of the subdomain that also points to Public_html/MULTISITE), how will he get to the requested sub site???

    WordPress is magic. If you go to foobar.ipstenu.org you will actually see a registration page. But if you go to tech.ipstenu.org it goes to the right page. WordPress takes the subdomain info and generates the right code. Because it's cool :)

    However....

    (in my case, Public_html/MULTISITE , yes, I dont have it directly inside public_html because there are other WP installations there).

    Then you 100% cannot use Subdomains. And this is mentioned all over the place in http://codex.wordpress.org/Create_A_Network

    ETA: And you can't map domains either. It's a thing with how websites work.

  24. iceq
    Member
    Posted 2 years ago #

    Trust me, I read the create a network tutorial more than 2 times, and I never noticed that :S

    Okay, so I cannot have a network if Multiste files are inside a public_html/subfolder, and all WP files must be directly inside public_html.

    Okay. I will move the files and will continue to experiment and try to get it sorted out. Meanwhile if you got some time (I know you have life, family and work :) ) , would be thankful to hear from on what I should pay attention to next.
    Thanx
    ( BTW, the other topic is not related to this, that speaks about a different website :) )

  25. iceq
    Member
    Posted 2 years ago #

    Hi. I am back after I changed my hosting account's primary domain, and made it the domain with which I want to access my network, and moved the netowrk's files to the root folder.
    I installed new WP on that folder and converted it to a network, I had to choose subdomains under the claim that it is not a new network and I had no other choice, although I have just installed it. Anyway I wanted subdomains in any case, so that's not an issue.
    Then I created 3 subsites, and named them x1.domain.com x2.domain.com and x3.domain.com.
    Then I created a wildcard subdomain pointing to the root folder (public html).
    I tested, the subsites do not load.
    Then I created one subdomain x1.domain.com and pointed it to the root folder, but that did not work either. I made sure there are no subfolders to which the subdomain might be pointing.

    What did I miss this time ?

  26. Okay, so I cannot have a network if Multiste files are inside a public_html/subfolder, and all WP files must be directly inside public_html.

    No, you cannot use SUBDOMAINS if Multisite is inside public_html/subfolder - You can use Subfolders, though.

    I had to choose subdomains under the claim that it is not a new network and I had no other choice, although I have just installed it.

    That means it is NOT a fresh install (i.e. you didn't clean out your database).

    Then I created a wildcard subdomain pointing to the root folder (public html).
    I tested, the subsites do not load.

    At this point, I can only guess that you're not doing THAT correctly. Did you ever check with your host to see if this was allowed? Is your DNS set up for it? (most are, but it doesn't hurt to check that there's a * in there pointing to the main IP).

  27. iceq
    Member
    Posted 2 years ago #

    Hi again Ipstenu. Yes I meant I can't use a network with subdomains if it's in a subfolder.

    On your second quote, no, it was actually a fresh installation of WP, and a new DB , but all were created using SimpleScripts (automated script installation platform available in Cpanel).

    For the issue itself, yes I made sure, in the subdomains list there is a wildcard pointing to the public_html folder.

    How can I be sure that it is allowed? Because it was accepted, I mean its setup went fine. Is that not enough?

    I checked with my hosting (Hostmonster) and they said it's allowed.
    But as I said, I also craeted a subdomain that is identical to the subsite's address, and that did not work either

  28. but all were created using SimpleScripts (automated script installation platform available in Cpanel).

    Don't. Please. Don't. Just make a DB manually. Learning how is a good idea and will help you later.

    How can I be sure that it is allowed? Because it was accepted, I mean its setup went fine. Is that not enough?

    Alas, no it's not. Which is why it's good to ask Hostmonster.

    But at this point, tell THEM "Hey, it's allowed, but it ain't working."

  29. iceq
    Member
    Posted 2 years ago #

    Okay. shame on me :)
    I forgot that I have forwarded my DNS to use Cloudflare's DNS, and I forgot to add the new subdomains there.
    So I did, and everything works fine.
    They also support wildcard domains, but they don't provide the Cloudflare features on such subdomains. Luckily, there is also a plugin that automatically adds new subdomains to my Cloudflare account.

    Thank you Ipstenu, for everything. I hope I won't have to reply here again.

Topic Closed

This topic has been closed to new replies.

About this Topic