• Hello, I have a problem with wordpress multisite instalation. I am trying to build multi network site (one wordpress instalation has multiple networks with multiple sites each) using a WP Multi-Network plugin.

    Structure would like something like this:
    Main domain – milasmagija.lv
    WP instalation dir. – milasmagija.lv/i
    WP Network dir – milasmagija.lv/i/triks
    WP Network’s site dir – milasmagija.lv/i/triks/a

    But for some reason it isn’t working. The main site in the new network (which is created in the same step as the network itself) is working, but when I add a new site to the newly created network it keeps displaying 404 error, saying “Oops! That page can’t be found.”

    Neither the admin panel of the subsite is working, or the subsite it self. It’s like they wouldn’t exist.

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

    (@ipstenu)

    ?????? Advisor and Activist

    using a WP Multi-Network plug

    Which one?

    Are you running WP out of it’s own folder? If so, the network dir would be milasmagija.lv/triks (no i)

    Thread Starter edgarl

    (@edgarl)

    This one:
    https://www.ads-software.com/plugins/wp-multi-network/

    WordPress is installed in a folder named “i”.

    After installing the multi-network plugin, the wordpress intallation folder (i), turns into the base network. Every newly added network comes after the slash (i/triks). The problem is that sites inside the newly added network doesn’t work. A site would be milasmagija.lv/i/triks/a

    PS. I’am using Hostgator. Tried asking them. No answer yet.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    I honestly don’t know if anyone’s tried WP in it’s own directory and Multinetwork…

    Even though WP is installed in i, since it’s running from milasmagija.lv the URL for the triks site SHOULD be milasmagija.lv/triks UNLESS you mean that ‘main domain’ is just the domain you’re using.

    In general, if you say that you have a ‘main domain’ you mean WP is running from there… It looks like not.

    So okay, I misunderstood. Sorry about that.

    https://milasmagija.lv/i/triks/a/wp-login.php works… What happens if you change permalinks on the triks site?

    Thread Starter edgarl

    (@edgarl)

    Yea, sorry about that. It’s just a domain I’am using. Updated parmalinks and it had no effect.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    What’s in your .htaccess?

    Thread Starter edgarl

    (@edgarl)

    RewriteEngine On
    RewriteBase /i/
    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]
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /i/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /i/index.php [L]
    </IfModule>
    
    # END WordPress
    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Okay so WordPress told you to replace your .htaccess rules. You added to them.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /i/
    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
    Thread Starter edgarl

    (@edgarl)

    Well, I replaced it with your version and it still doesn’t work. I could give you my login details, so you can look with your own eyes what’s happening.

    Thread Starter edgarl

    (@edgarl)

    Ok, so Hostgator finally answered. Here is what they said:

    One thing I can confirm is that the request is getting handled by WordPress instead of Apache, which is what you would want to happen. I have been unable to identify why the 404 page is occurring, however it is very likely related to the wp-config.php settings, as these appear to be the ones you would use for a multi-site installation, but not a multi-network installation. 
    
    * Multisite */
    define( 'WP_ALLOW_MULTISITE', true );
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', false);
    //define('DOMAIN_CURRENT_SITE', 'milasmagija.lv');
    define('PATH_CURRENT_SITE', '/i/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);

    So is my wp-config settigs correct?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Hostgator… You doofus.

    One thing I can confirm is that the request is getting handled by WordPress instead of Apache, which is what you would want to happen. I have been unable to identify why the 404 page is occurring, however it is very likely related to the wp-config.php settings, as these appear to be the ones you would use for a multi-site installation, but not a multi-network installation.

    The request is too being handled by Apache. That was really poorly worded. Yes, you want the request to be handled by WordPress, but WordPress is using Apache. Semantics. ARUGH. THIS is why users get confused!

    Ignore HostGator. They don’t understand Multisite apparently.

    Okay let’s step back

    https://milasmagija.lv/i/triks/ – This shows it’s own site (yay)

    https://milasmagija.lv/i/triks/a/ – This shows a 404 that matches tricks
    https://milasmagija.lv/i/triks/a/wp-admin – Ditto

    Can you screenshot what the multinetwork panel looks like? The one where you set up the sub-subsite?

    Thread Starter edgarl

    (@edgarl)

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    /i/triks/ is BOTH a subsite AND a network. How did that happen? It shouldn’t show up on both…

    Thread Starter edgarl

    (@edgarl)

    Well, when creating a new network wordpress creates a site too.
    https://s14.postimg.org/9l67hls6p/Untitled.png
    https://s21.postimg.org/d87t4guxz/Untitled2.png

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘WP Multi-Network Multisite 404 Error’ is closed to new replies.