• I have multisite enabled and followed wordpress.org’s official guide to do so (don’t currently have the link). Everything seems to work pretty well except one pretty challenging issue. My primary site is called “watermint” and I have created a second site called “battleschool”. In the WordPress admin area when I hover over “My Sites” I get a dropdown showing the following options: “Network Admin”, “watermint” and “battleschool”. If I hover over battleschool and then hover over “Dashboard” the URL shown in the browser at the bottom is just http://www.mydomain.com/wp-admin, however the correct URL for navigating to the battleschool dashboard is http://www.mydomain.com/battleschool/wp-admin.

    If I click the link I am taken to the default dashboard (watermint) and not battleschool. If I instead manually type in “www.mydomain.com/battleschool/wp-admin” the battleschool dashboard comes up fine. Once I am at “www.mydomain.com/battleschool/wp-admin” most things seem to work perfectly. Any of the left-hand menu options all come up with the URL containing “battleschool” but there are a couple of areas where “battleschool” is still left out of the URL (for instance the “Activate” button when activating a theme).

    The problem just seems to be that although wordpress recognizes I have multiple sites, and although if I use the correct URL I am redirected correctly (.htaccess is working). There are a few places where when WP renders out links it’s not rendering them out correctly. Can someone shed some light on what’s happening?

    Here’s my wp-config and just for fun my .htaccess as well.

    define( 'WP_ALLOW_MULTISITE', true );
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', 'www.mydomain.com');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);
    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]
Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    What plugins are network activated?

    What theme is running on http://www.mydomain.com ?

    Thread Starter omatase

    (@omatase)

    Thanks for the fast response.

    No plugins are active

    The theme I am using is called Salient but I have also activated “Twenty Fifteen” and I have the same issue on both themes.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    I’ve seen this happen now and then, but I’ve never been able to reproduce it.

    You followed these directions, right? http://codex.wordpress.org/Create_A_Network

    In general, I’ve told people to delete the multisite part of their site and start over, since something was done ‘wrong’ (and I use that VERY loosely) to break WP’s brain.

    Is WP installed in a folder (like domain.com/folder/) but runnig from domain.com?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Multisite *mostly* working, some URLs not rendering correctly’ is closed to new replies.