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

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.

https://codex.wordpress.org/Create_A_Network#.htaccess_and_Mod_Rewrite

 

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:

 

wp-config.php:

define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', '73c.ceb.myftpupload.com');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);

 

.htaccess:

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.

 

1 REPLY 1
Solution

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: 

 

https://www.godaddy.com/community/Managing-WordPress/Installer-sets-up-multisite-in-a-subdirectory-i...