Support » Networking WordPress » Multisite sub-directory not used on new post

  • Hello,

    I have set up a multisite within my Managed WP provided by GoDaddy.

    I’m using the sub-directory option.

    I am able to create a new site with the format mysite.com/subsite and set up new users to have access to that site.

    I am able to see ‘subsite title’ in the ‘My Network’ flyout menu.

    However, if I click the dashboard / editing for subsite, or try to add a post when within the page builder for subsite, it defaults back to posting / editing against mysite.com rather than mysite.com/subsite

    If I try updating the subsite settings from within the Network Admin (thinking maybe I had to add the subsite URL here), the new URLs revert back to mysite.com

    Within the My Sites menu within the main dashboard, even though the drop down box has two entries, both are just mysite.com, even though subsite one is present underneath the drop down box with it’s own link for dashboard (which does not work and navigates back to mysite.com)

    Even though subsite seems to be visible in all the menus, for all intents and purposes, it may as well not exist.

    Any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’ve had this happen with a couple multisite installs in the past. If I remember correctly adding the following to my wp-config.php file solved it. Also make sure that SUBDOMAIN_INSTALL is set to FALSE if not already. This makes sure that your multisite is set to use sub-directory structure instead of sub-domain.

    define('SUBDOMAIN_INSTALL', FALSE);
    define('DOMAIN_CURRENT_SITE', 'yourtoplevelsite.com');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    If this doesn’t work then maybe try taking a look at the .htaccess file and make sure it’s set up correctly. For your setup it should look like the one below. (Taken directly from the WordPress Codex – https://codex.wordpress.org/htaccess)

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    Hi,

    Thanks for taking the time to reply.

    Those pointers are both from the set up instructions within WordPress, they’re already in place.

    If you want I’m happy to share the individual files to check the code within them.

    The only thing I can possibly think of from reading forums is that I put the multisite in place more than a month of having the site active, therefore sub-directory should not be allowed. However I also read that WordPress is apparently supposed to not offer one of sub-domain or sub-directory depending on the state of existing site. I choose sub-dir because I like the idea of it better and had ‘nothing to lose’ in terms of broken links, etc, i.e., the site is basically me playing around how to learn to blog.

    I wonder if it’s worth scrapping everything and beginning again? Is that even possible?

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