Support » Networking WordPress » Multisite Issue with URL

  • Hello I have a wordpress multisite that has a primary domain and then runs all other sites as a subdirectory

    primarysite.com
    primarysite.com/other-sites

    For some reason the ‘Other Sites’, that are run as subdirectories, they are losing their URL, meaning the ‘siteurl’ and ‘home’ options in the database are being stripped down to just ‘primarysite.com’

    I have 2 questions. Is there a way to resolve this? And for a temporary fix is there a way to hard code the ‘siteurl’ and ‘home’ url, similar to how you can for the primary domain in the wp-config file:

    define(‘WP_HOME’,’https://www.primarydomain.com’);
    define(‘WP_SITEURL’,’https://www.primarydomain.com’);

    • This topic was modified 1 week, 4 days ago by  Steve Stern.
Viewing 1 replies (of 1 total)
  • Hi @hanlonwebdevs,

    I would first like the following from your end:

    1. .htaccess contents
    2. wp-config.php settings for multisite setup

    On a demo installation I did, here’s the setup of my multisite setup:

    /* Multisite */
    define( 'WP_ALLOW_MULTISITE', true );
    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', true );
    define( 'DOMAIN_CURRENT_SITE', 'www.primary-domain.com' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );

    Please note that www is considered a subdomain by default.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.