Viewing 15 replies - 1 through 15 (of 22 total)
  • Apparently, I would love support for subdirectories though…. when activated I only see a list with the main site over and over. ??

    Thread Starter Cal

    (@themesbycal)

    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.

    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 !

    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

    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.

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

    Plugin Author fritsjan

    (@fritsjan)

    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

    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.
    https://mysite.com/multisite/

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

    Plugin Author fritsjan

    (@fritsjan)

    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: https://mysite.com/multisite/site2/ or in case of subdomain install: https://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.

    Plugin Author fritsjan

    (@fritsjan)

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

    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 https://www.disrupt.org/a using a new url https://www.disrupt.org/b.
    2. After putting some contents in wwww.disrupt.org/b, I want then to map it to a new domain https://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 https://www.disrupt.org/a using the main site https://www.disrupt.org. I have also done a domain mapping test: assign the domain https://www.b.com (primary domain) to https://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

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

    Plugin Author fritsjan

    (@fritsjan)

    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:

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

    https://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…

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

    Hi,

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

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘[Plugin: Add Clone Sites for WPMU (batch)] Does this work for subdirectories?’ is closed to new replies.