Support » Plugin: WP Multi Network » Is commenting out DOMAIN_CURRENT_SITE still a requirement?

  • In installation, is this:

    Comment out the DOMAIN_CURRENT_SITE line in your wp-config.php file. If you don’t have this line, you probably need to enable multisite.

    …still a requirement?

    WP-CLI seems to struggle if DOMAIN_CURRENT_SITE is commented out and putting it back doesn’t seems to cause noticeable problems.

Viewing 5 replies - 1 through 5 (of 5 total)
  • I’d like to know this, too. Commenting it out also interferes with WordPress toolkit in Plesk.

    Plugin Author John James Jacoby

    (@johnjamesjacoby)

    Either comment it out, or set it to match the current domain being requested.

    Could you expand on “the current domain being requested” please? Is that the base multisite URL? Of using a variable to enable any site from the network be requested? Or am I just overthinking that entirely?

    Thanks, JJJ.

    Nathan, I set it to match my root domain and all networks are functioning properly. CLI and Plesk WP Toolkit also work.

    Philipp

    (@philippmuenchen)

    I guess @jj means either

    define ('DOMAIN_CURRENT_SITE', $_SERVER['SERVER_NAME'] );

    or

    define( 'DOMAIN_CURRENT_SITE', $_SERVER['HTTP_HOST'] );

    Not sure what is better to go with. All what should be needed here is to get the domain of the current page visited.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Is commenting out DOMAIN_CURRENT_SITE still a requirement?’ is closed to new replies.