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://ww.wp.xz.cn/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.
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.
http://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.
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
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?
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
http://milasmagija.lv/i/triks/ – This shows it’s own site (yay)
http://milasmagija.lv/i/triks/a/ – This shows a 404 that matches tricks
http://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?
/i/triks/ is BOTH a subsite AND a network. How did that happen? It shouldn’t show up on both…
Thread Starter
edgarl
(@edgarl)