• I just installed network/multisite in wordpress. I am using the subdirectory model.
    Primary site: mydomain.com
    2nd site: mydomain.com/en

    I can’t access the dashboard for the 2nd site. When I click on it I simply see the primary site settings. It appears wordpress is not adding the /en/ to the url.

    It gives me: https://mydomain.com/wp-admin/ for both sites.
    If I manually add the /en/ to the url it seems to allow me to edit the 2nd site: (https://mydomain.com/en/wp-admin/). This goes for all dashboard/admin features. The funny thing is the site itself seems to operate fine to the public. Any ideas here would be appreciated!

    Thanks!

Viewing 12 replies - 1 through 12 (of 12 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    What’s in your .htaccess?

    Moderator Bet Hannon

    (@bethannon1)

    Can you double-check and make sure you followed exactly all the steps outlined here?
    https://codex.www.ads-software.com/Create_A_Network

    If you did, can you describe how you are trying to access the 2nd site dashboard? Are you able to get into the Network Admin dashboard where you can see the list of all sites?

    Thread Starter Totally_Outnumbered

    (@totally_outnumbered)

    I believe I followed all the proper steps. I can see my 2 sites in the dashboard. I can click on both sites in the dashboard and I don’t get any errors. Problem is no matter which one I click on it returns the same URL (allows me to edit the primary site only).

    .htaccess:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    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]
    </IfModule>
    
    # END WordPress
    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    You don’t have any plugins on, do you?

    When you go to https://mydomain.com/en/wp-admin/ is the URL for your site correct THERE? That is, from https://mydomain.com/en/wp-admin/ when you hover over My Sites and that EN site, does the URL show up as EN or not?

    Thread Starter Totally_Outnumbered

    (@totally_outnumbered)

    Even from https://mydomain.com/en/wp-admin/ the EN does not show up.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    And no plugins?

    Thread Starter Totally_Outnumbered

    (@totally_outnumbered)

    Correct. Same result with plugins disabled.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    *boggle* Okay. Now that’s weird…

    No server side caching?

    What’re the Multisite rules in your wp-config?

    Thread Starter Totally_Outnumbered

    (@totally_outnumbered)

    Yes. Built in caching. Flushing/time doesn’t change anything.

    wp-config contains:
    define( ‘WP_ALLOW_MULTISITE’, true );

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Yes. Built in caching. Flushing/time doesn’t change anything.

    PAUSE! What built in caching? Name your plugin/cache service please ?? (W3TC, Nginx, Varnish… whatever).

    Also that’s not all of the multisite code. There should be a lot more.

    Thread Starter Totally_Outnumbered

    (@totally_outnumbered)

    Caching is built in to godaddy hosting.

    Hopefully this is what you need:
    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, false);
    define(‘DOMAIN_CURRENT_SITE’, ‘mydomain.com’);
    define(‘PATH_CURRENT_SITE’, ‘/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);
    /* Multisite */
    define( ‘WP_ALLOW_MULTISITE’, true );

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Caching is built in to godaddy hosting.

    Can you ask them if they allow Multisite on your hosting plan?

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Multisite – Can't access Dashboard of 2nd site’ is closed to new replies.