Support » Networking WordPress » Subdirectory Multisite 404 error

  • Hello. I’ve been having trouble with adding sites to my Multisite install. I’m using subdirectory. works but leads to a 404 error.

    Starting with a fresh install of WordPress I added this line to wpconfig.php

    /* Multisite */
    define( 'WP_ALLOW_MULTISITE', true );

    After setting up Multisite through the dashboard I followed the directions adding this to wpconfig.php (under the first line I added)

    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    define('DOMAIN_CURRENT_SITE', '');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    then I replaced the existing lines in .htaccess, so that it now has this

    # BEGIN WordPress
    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]
    # END WordPress

    After doing this and setting up the first site in the network I get the 404 error when trying to edit or view that site.

    I’m using shared hosting through Godaddy. Been reading other posts but still confused with the problem. Should I be using a domain mapping plugin to redirect the subdirectory site? WordPress is installed in the root. I have other sites on the same hosting account, could that be the problem?

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


    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    What does the 404 look like? Is it styled like your main site?

    It is not styled like the main site. It is the godaddy 404 error page that says ever feel like you’re in the wrong place?

    Moderator Ipstenu (Mika Epstein)


    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    Well… THAT is weird.

    Sounds like something on their server is cached, or not redirecting. With WP, even with a Subfolder/subdirectory install of WP, it should give you the WP themed one.

    Tell GoDaddy – The subfolder isn’t even hitting WP!

    ninjaface, hit me up at kpayne -at- with your domain and I’ll take a look.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Subdirectory Multisite 404 error’ is closed to new replies.