Showing results for 
Show  only  | Search instead for 
Did you mean: 
Go to solution

Wordpress Multisite with subdirectory redirect to primary site

I followed the steps available in the link below to setup a wordpress sub directory multi-site.


I added a new site (other than the primary site) and everything is working normally.

However, when I try to visit the new site dashboard or visit the new site url it redirect to the primary site. I tried to navigate to the new site by adding /[new site name] the result is page not found and I noticed that the new site title is displayed.


Below is the setup provided by wordpress for wp-config.php and .htaccess:



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);



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]


Your support is highly appreciated. Thank you.



Re: Wordpress Multisite with subdirectory redirect to primary site

Sounds like you had the same problem as me. Old thread, but for anyone else having trouble: