• Resolved Bharat106

    (@bharat106)


    Hi,

    I recently installed wordpress multisite, followed all the steps required to do so and I just can’t seem to get it to work.

    I was setting it up with sub-domains (only option as mine is not a new site). I set up wildcard subdomains with the right root folder (I double, triple and quadruple checked).

    This is the code I have in my wp-config.php (everything related to Multisite

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

    This is the code I have in my .htaccess file (it used to be in a ifmodule with the condition of mod_rewrite.c but since i’m using InMotion hosting and they have mod_rewrite.c enabled I figured an ifmodule was unnecessary.

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

    After I add these codes and set all the settings and when it tells me to relog, I do so but there is no change to my dashboard, I still have the network setup under Tools->Network Setup and if i go to it it gives a message saying Warning: An existing WordPress network was detected..

    If i try to access mysite.com/wp-admin/network i get this message – You do not have sufficient permissions to access this page. even though I only have one account on the site and it’s an admin.

    Thanks for reading!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Bharat106

    (@bharat106)

    Figured the issue out,

    For anyone facing a similar issue in the future, i’ll post the solution I had to introduce for my multisite to work.

    This is a very basic sort of thing that I had over looked, hopefully I learnt a little from this >.<

    The issue was in wp-config.php, I had to move a line of code so that it looks like this –

    /* That's all, stop editing! Happy blogging. */
    
    require_once(ABSPATH . 'wp-settings.php');

    So basically, any require or include statements you have in your wp-config need to go after the Happy blogging comment, your multisite will work fine after that (Assuming you did everything else right)

    Hope this helps ^.^

    Shane

    (@shaneoriordan)

    Thank you so much.

    I was having the very same issue.

    I put the multi-site code after this line.
    It should be before it.

    Solved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multisite network not working after multisite install’ is closed to new replies.