Cloner issue / subdomains - www added from base url to subdomain path

Hi,

We have our multisite set up with subdomains. Our base site is on http://www.ourdomain.com and network sites have subdomains like test1.ourdomain.com test2.ourdomain.com etc.

When running the cloner the cloner tries to go to the url test1.www.ourdomain.com instead of test1.ourdomain.com - i.e. it is substituting in the whole url of the base site http://www.ourdomain.com into the url and therefore failing during the clone process.

If the site is set up with folders instead of subdomains it works perfectly, but we want to use subdomains for each site on the network. Is there a fix/workaround for this issue in your plugin?

Regards
Brooke

  • Vinod Dalvi
    • WP Unicorn

    Hi Brooke,

    Sorry to hear of the problem you are having.

    Would you mind if I logged in to your site and did some troubleshooting? This might help get to the bottom of this faster. If this is ok, just grant me temporary admin access to your site by clicking "Grant Access" button in the WPMU DEV Dashboard Settings as described on the following page and reply on this thread after granting it?

    https://premium.wpmudev.org/manuals/wpmu-dev-dashboard-enabling-staff-login/

    You can change the subdomain based subsite URLs by changing the Siteurl and Home URL of subsites in the multisite network admin settings as displayed in the attached screenshot.

    Kind Regards,
    Vinod Dalvi

  • phoenix04
    • New Recruit

    Hi,

    Thanks - we've granted you access in the admin panel.

    The root site is on http://www.ourdomainname.com
    The test sites are on basetheme.ourdomainname.com (the one we want to clone)
    We created a new subdomain called test55.ourdomainname.com (this is the target clone)

    When trying to clone basetheme.ourdomainanme.com to test55.ourdomainname.com, the cloner errors out because it tries to redirect to test55.www.ourdomainname.com

    (ourdomainname.com is the name of our domain in our site. You can look this up in our account - I haven't put in our real domain name in case this reply is publicly posted)

    We don't want to change the url of the base site to ourdomainname.com because we want visitors to the root site to go to http://www.ourdomainname.com and the network sites to be site1.ourdomainname.com site2.ourdomainname.com etc.

    Regards
    Brooke

  • Ash
    • WordPress Hacker

    Hello @phoenix04

    I hope you are well today.

    In fact, in subdomain based multisite, using www is not recommended. www is considered as a subdomain. Not only in cloner plugin, but also in many other plugins you may face this issue. As when creating subsite, when the plugin query for network site url, it find the domain with www, that creates the problem.

    I am tagging the developer @Ignacio for his valuable opinion on this issue, we appreciate your patience on this.

    Cheers
    Ash

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.