WordPress.org

Ready to get started?Download WordPress

Forums

Add Clone Sites for WPMU (batch)
Does this work for subdirectories? (23 posts)

  1. Cal
    Member
    Posted 3 years ago #

    I have WPMU set up using sub-directories. When I install this plugin and try to use it, none of my sub-sites show up.

    So is this only made for subdomains?

    Plugin: http://wordpress.org/extend/plugins/add-cloned-sites-for-wpmu-batch/

  2. datapharmer
    Member
    Posted 3 years ago #

    Apparently, I would love support for subdirectories though.... when activated I only see a list with the main site over and over. :-(

  3. Cal
    Member
    Posted 3 years ago #

    Well looking at the plugin it looks like it's made for subdomains and mapping. I'm no programmer but it looks like there's quite a few changes that have to be made to get it to work with subdirs.

  4. austra
    Member
    Posted 3 years ago #

    Hi,

    Thanks for the great plugin! I wanted to be able to use this for sub-directories as well. I made the following tiny change and it seems to work great.

    First make sure to turn off automatic domain mapping when you enter your new sites. If the site you are cloning is "abc.myblog.com", your new Site URL should be entered "new.myblog.com". Here is the simple change...

    File: "wp-content/plugins/add-cloned-sites-for-wpmu-batch/magic-add-cloned-sites.php"

    Line 91:

    Change-
    $domain = $dashedsiteurl . "." . get_blog_details(1)->domain;

    To-
    $domain = $siteurl;

    There is a different small change you can make so the new Site URL you enter is just the new sub-directory name. Entering "new" for example would result in "new.myblog.com".

    Same file, same line:
    Change To-
    $domain = $siteurl . "." . get_blog_details(1)->domain;

    Comment out Lines 95-99.

    //if (!valid_url($siteurl)){
    // _e("<span class=\"error\">The url '$siteurl' is not a valid url.</span>", 'acswpmu_trdom' );
    // $error = TRUE;
    //}

    You cannot do both of these so choose one... I haven't really tested this much either so you might want to test it a bit...

    Good Luck !

  5. obiscoito
    Member
    Posted 3 years ago #

    Austra - does this allow you to make sub directories: site.com/directory or subdomains directory.site.com?

    Also for the upload file, do you need to enter the desired URL or just the directory name?

    Thanks

  6. austra
    Member
    Posted 3 years ago #

    Oh sorry, you are right... It was so late last night when I did that I didn't even notice.

    This is for subdomains, not subdirectories.... Sorry about that. I'll look at it again later and see if it is just as easy to fix up for subdirectories.

  7. obiscoito
    Member
    Posted 3 years ago #

    Thanks Austra, would love to get this working for sub directories

  8. fritsjan
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Everyone,

    This is my first plugin and I did not know there was a forum with questions on this site..
    I just released a new version which should support a subdirectory setup.
    I tested it briefly, and looks like it works. If not please test it and report any bugs to me.

    Hope you like this plugin and hope it will save you a lot of time and gives me some time to drink my donated coffees ;-)

    Frits Jan

  9. kbrady
    Member
    Posted 3 years ago #

    Can you go over how to use this with sub-directories? I am not having any success. I am trying to use it in a wordpress install in a subdirectory.
    http://mysite.com/multisite/

    Do I deselect auto-domain mapping for subdirectories?
    What do I put in the New Site URL (without www): field?

  10. fritsjan
    Member
    Plugin Author

    Posted 3 years ago #

    Hi kbrady,

    Hmm I did not test this for a install of wordpress in a subdirectory...
    I don't think it is wise to make a multi site installation inside a subdirectory. You would end up with domain names like: http://mysite.com/multisite/site2/ or in case of subdomain install: http://site2.mysite.com/multisite

    I also don't know if the domain mapping plugin from Doncha works with your setup. I recommend setting up wordpress in the root of the domain.

  11. fritsjan
    Member
    Plugin Author

    Posted 3 years ago #

    To every one else, I would like some feedback. Is everything working fine now?

  12. jeansuhas
    Member
    Posted 3 years ago #

    Dear all,

    I am having some troubles with:
    - Add Clone Sites for WPMU (batch) and subsenquently with the related Domain Mapping plugin.

    Basically, I have installed WP multisite for sub-directories. This is what I am trying to achieve:
    1. Clone a site http://www.disrupt.org/a using a new url http://www.disrupt.org/b.
    2. After putting some contents in wwww.disrupt.org/b, I want then to map it to a new domain http://www.b.com.

    I have done some research but I can't find anything that may solve my problem. So far, I have achieved to create the site http://www.disrupt.org/a using the main site http://www.disrupt.org. I have also done a domain mapping test: assign the domain http://www.b.com (primary domain) to http://www.disrupt/a but instead the page of my server appear (InMotion Hosting).

    So I am stuck. I hope you can help me guys.

    Take care all

  13. jeansuhas
    Member
    Posted 3 years ago #

    Note, the url that I am using to describe my situation are imaginary. eheheh

  14. fritsjan
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Jeansuhas,

    This plugin is doing exactly what you want.
    I know there are people out there who want to map the same domain to a subdomain which is not working. I think I have to explain this later.

    For you I would say that you havent setup the domainmapping correctly on your server. I suggest you to follow this article in order to help you set it up correctly.
    There are a few steps during the setup which involves settings in the hosting cpanel or directadmin. Some of the steps cannot be executed by yourself but only by the hosting company you hosted your site.

    See these articles:

    http://www.binaryturf.com/run-multiple-sites-wordpress-30-separate-domains/

    http://translate.google.nl/translate?js=n&prev=_t&hl=nl&ie=UTF-8&layout=2&eotf=1&sl=nl&tl=en&u=http%3A%2F%2Fwww.rutgergroot.nl%2Fblog%2Ftutorial-meerdere-domeinen-beheren-vanuit-een-wordpress-3-0-installatie%2F&act=url
    (translated from dutch)

    hope this helps...

  15. jeansuhas
    Member
    Posted 3 years ago #

    Thank you very much. I am trying right now. I will update the forum regarding my progresses.

  16. jeansuhas
    Member
    Posted 3 years ago #

    Hi,

    I have followed all the instructions but for some reasons the cloning and mapping processes are not working.

  17. jeansuhas
    Member
    Posted 3 years ago #

    Hi
    What steps I cannot execute myself?
    Regards

  18. holden2
    Member
    Posted 3 years ago #

    Hello,

    I am having trouble getting the plugin to post to subdomains on the same url.

    If I put urla it says incorrect url. If I put urla.mydomain.com it makes urla.mydomain.com.mydomain.com.

    Am I missing something?

    Thanks!

  19. fritsjan
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Holden2,

    Yes that is correct, the plugin is meant to do cloning AND domainmapping in 1 go. That is why you need a valid domain for each cloned site.
    However I see that many people 'just' want to use my plugin for cloning many subdomains or subdirectory sites WITHOUT domainmapping them.

    Therefore I made an update which will be available later today (or tomorrow) which can do this. So keep your eyes out for the update!

    And a thank you with a cup of coffee would be nice (and my first actually). It is a wonder I am still awake without the caffeine.

  20. holden2
    Member
    Posted 3 years ago #

    Thanks for knocking that out!

    I will send you some coffee money.

  21. fritsjan
    Member
    Plugin Author

    Posted 3 years ago #

    Cool, coffee at last ;-)

  22. skadge
    Member
    Posted 3 years ago #

    Hello fritsjan,

    Thanks for your plugin!
    I'm in the case of wordpress not installed in the root directory, but in http://myroot.org/dept/blogs
    And I would like to batch create
    http://myroot.org/dept/blogs/a
    http://myroot.org/dept/blogs/b
    etc.

    I did not really get why it was a bad idea, and in our case (pretty big non-for-profit organization with a lot of sub-departments), I'm not sure I can avoid it.

    Do you think it would be nevertheless possible?

  23. holden2
    Member
    Posted 3 years ago #

    Hey Fritsjan,

    This plugin has been so useful that I need to go with multiple db's for my WordPress install.

    I am running into issues with wordpress's ability to create new sites now.

    Any ideas how to fix that?

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic