• Hello, members.

    Requirements

    I would like to create multisite like blog.example.com, and news.example.com

    Limitations

    • I can’t use example.com and www.example.com as the same WorkPress site. It’s deploying on other servers.

    Problems

    • When I create blog.example.com as the first WordPress site, and set, define( 'WP_ALLOW_MULTISITE', true ); It said blog.example.com as a server address, I would like to set example.com as a server address.
    • When I set define( 'DOMAIN_CURRENT_SITE', 'example.com' ) in the configuration file, It redirect example.com. But example.com use on another site.

    Questions.

    • Is it possible to setup like the above? Does anyone know these configurations if it possible?

    Reference

    https://developer.www.ads-software.com/advanced-administration/multisite/

    WordPress

    WordPrees: 6.5

    Best regards.

    Hiroyuki Sato

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    DOMAIN_CURRENT_SITE must be set to the correct full, main domain of your WP installation. From your description, it is not example.com. It probably needs to be blog.example.com?

    Because your WP installation is essentially installed in a sub-domain already, I don’t think you can use a sub-domain multisite configuration, you will create an infinite redirection loop by doing so. I believe such a configuration will require a sub-directory multisite configuration.

    Related discussion FYI:
    https://www.ads-software.com/support/topic/problems-with-multisite-wordpress-installation/

    Thread Starter hiroysato

    (@hiroysato)

    Hello, @bcworkz Thank you for your advice.

    I followed How to Setup WordPress Multisite with Multiple Domains

    and set COOKIE_DOMAIN domain explicitly.

    Finally I succeed to create blog.example.com and news.example.com.

    I also set define( 'DOMAIN_CURRENT_SITE', 'blog.example.com' ); as you said.

    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', true );
    define( 'DOMAIN_CURRENT_SITE', 'blog.example.com' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );
    define('COOKIE_DOMAIN', 'example.com' );
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.