use batch create to create sites in something other than the default domain

Hi Everyone

I have a main site - http://www.wavesof.com

It is a multisite one of the sites that it controls is

http://www.emergencydentalwalkins.com

I need to have cityname.emergencydentalwalkins.com using the EDWSubscriptions template that I setup as default

It appears that when using the batch update, I cannot specify that the new sites need to be created under emergencydentalwalkins.com but that they will automatically be created under the main site wavesof.com

after import I have had to go to the newly created site and use domain mapping to map to emergencydentalwalkins.com

This is complicated by my consultant setting up MU for subdirectories instead of subdomains.

So, I have a 2 fold question

1. is there a way to use batch create for the secondary domain emergencydentalwalkins as opposed to the primary domain wavesof?

2. am I totally fubar on the subdirectory as opposed to subdomain setup.... can I switch to subdomains?

I am expecting roughly 500 subscriberts to emergencydentalwalkins, and am planning on holisticdentistnearme.com to operate the same way, as well as some other verticals. I'm going to be doing a lot of batch creation... how stuck am I?

Jeff

  • PC

    Hello Jeff,

    Greetings and thanks for your post.

    I have a main site - http://www.wavesof.com

    It is a multisite one of the sites that it controls is

    http://www.emergencydentalwalkins.com

    I am assuming that the network site is wavesof.com and the emergencydentalwalkins.com is a subsite on the main site.

    Batch Create is a great tool, however I am not too sure about the Multi Domain integration got any traction or not.

    This is your workaround

    Open batch-create.php

    Replace
    $current_site->domain

    by

    "multidomain.com"

    You will need to do each time you run the plugin to create a batch site and change it to whatever domain you want to create it under.

    You will need to install https://premium.wpmudev.org/project/multi-domains/ and make sure its working fine before you try as I suggested above.

    2. am I totally fubar on the subdirectory as opposed to subdomain setup.... can I switch to subdomains?

    If you wish to switch to subdomains, it's the time as the site is still under construction, later it will be a mess for you to manage the switch. Even I'd prefer using Subdomains over subdirectories. No specific reason, just like that :slight_smile:

    PS : I have sent a note to our lead developer @Ignacio to see if we can have some kind of feature where we can choose which domain we need to create the sites in.

    Cheers
    PC
    Sales &Support

  • 4thstreetweb

    You rock.

    I have gone to wp-conf.php and changed
    define('SUBDOMAIN_INSTALL', false); to true

    nothing seems to have broken (yet) "grimace"

    I also tried change define (Domain_Current_Site......) that was a nightmare.. all kinds of internal loops created

    I am now going to manually create a site, hopefully it will create as a subdomain.. my existing subdomains are handled with domain mapping - and they work after the change. I'll keep you posted.

    I will also be using your workaround for batch create.

    I'll get back and let you know how it works out.

    Jeff

  • 4thstreetweb

    Well Poop.

    manually creating the site 123test.wavesof.com returned the following error it was a 2 part question.. so I hope you don't mind that I am simply continueing the thread

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, webmaster@wavesof.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

    I have verified that wavesof.com has wildcard subdomains in cpanel.

    Any ideas? again - this is a WP issue, not a plugin issue.. and trying to switch from subdirectory install to subdomain install.

    Jeff

  • PC

    manually creating the site 123test.wavesof.com returned the following error it was a 2 part question.. so I hope you don't mind that I am simply continueing the thread

    No worries :slight_smile:

    Lets deal and fix the second issue first !

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, webmaster@wavesof.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

    It indicates that the wildcard subdomains are not working properly.

    Try this.

    Open registrations on your site
    try and visit a random domain on your site

    like asfdasdf.wavesof.com and see if its allowing you to create a site or simply show an error.

    If there is an error, double check your A record (wildcard)

    If that seems correct, follow the steps I mentioned here : https://premium.wpmudev.org/forums/topic/how-to-fix-dns-issue-on-subdomain-blogs-in-wpmu-especially-in-cpanel-without-using-wildcard-dns and use wildcard subdomain as a work around and see if that works.

    and trying to switch from subdirectory install to subdomain install.

    If you have a new site, its better to start fresh, remove wordpress, reinstall and then setup a subdomain multisite. : http://wordpress.org/support/topic/from-subdirectories-to-subdomains-how-to-change-wpmu-after-the-mu-install

    Let me know how it goes.

    Cheers
    PC
    Sales &Support

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.