Title: non-root multisite access problem
Last modified: July 1, 2018

---

# non-root multisite access problem

 *  [pantau000](https://wordpress.org/support/users/pantau000/)
 * (@pantau000)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/non-root-multisite-access-problem/)
 * My primary site domain is accessed directly, but all files are in the /wordpress
   folder.
 * I then switched to a multisite subfolder layout, to add anther site. I’m still
   able to access the primary site normally, including its dashboard. However, I
   can’t access the network site admin pages (404 error).
 * .htaccess is as follows (on root):
 * # BEGIN WordPress
    <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule
   ^index\.php$ – [L]
 * # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.
   php?file=$2 [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).*) $1 [L] RewriteRule
   ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L] RewriteRule . index.php [L] </IfModule> # END
   WordPress
 * Any ideas are welcome…

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [wpbees](https://wordpress.org/support/users/wpbees/)
 * (@wpbees)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/non-root-multisite-access-problem/#post-10454271)
 * Hello,
 * Try changing this two lines in .htaccess:
 * RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*\.php)$ 
   $1 [L]
 * With this:
 * RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule
   ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
 * I hope this helps.
 *  Thread Starter [pantau000](https://wordpress.org/support/users/pantau000/)
 * (@pantau000)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/non-root-multisite-access-problem/#post-10454485)
 * Hi,
 * did you mean I should just change “$1” to “$2” in both lines (I had no “RewriteRule
   ^(wp-(content|admin|includes).*) $1 [L]” in my .htcaccess).
 * I tried this, with the same result.
 * Do I maybe need to change the “RewriteBase /”, as my primary site is in the “/
   wordpress” folder?
 * Thanks!
 *  Thread Starter [pantau000](https://wordpress.org/support/users/pantau000/)
 * (@pantau000)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/non-root-multisite-access-problem/#post-10460278)
 * bump

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘non-root multisite access problem’ is closed to new replies.

## Tags

 * [multisite](https://wordpress.org/support/topic-tag/multisite/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [pantau000](https://wordpress.org/support/users/pantau000/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/non-root-multisite-access-problem/#post-10460278)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
