Title: local subdirectory multisite problem
Last modified: December 8, 2022

---

# local subdirectory multisite problem

 *  [benny239](https://wordpress.org/support/users/benny239/)
 * (@benny239)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/local-subdirectory-multisite-problem/)
 * Hello,
    I am trying to setup a multisite on localhost.
 * I have followed the creation process as described in WP documentation, and added
   the recommended code to the wp-config file and .htaccess file.
    I tried to add
   new site “test” and thought it was successful.
 * The dashboard shows the network setup:
    Main site URL is : localhost/wp Second
   site URL is : localhost/wp/test
 * The main site works well, and the dashboard shows the menu for the network and
   the two sites, but when I try to access to the dashboard for the second site,
   I get “error 404”.
 * Here is my wp-config and .htaccess:
 *     ```
       define ( 'WP_ALLOW_MULTISITE' , true );
       define( 'MULTISITE', true );
       define( 'SUBDOMAIN_INSTALL', false );
       define( 'DOMAIN_CURRENT_SITE', 'localhost' );
       define( 'PATH_CURRENT_SITE', '/wp/' );
       define( 'SITE_ID_CURRENT_SITE', 1 );
       define( 'BLOG_ID_CURRENT_SITE', 1 );
       ```
   
 *     ```
       RewriteEngine On
       RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
       RewriteBase /wp/
       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]
       ```
   
 * Thanks for your help!

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

 *  [thomas2907](https://wordpress.org/support/users/thomas2907/)
 * (@thomas2907)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/local-subdirectory-multisite-problem/#post-16271873)
 * I have a very similar problem which I’m going to describe in a separate topic
   because I’m not sure whether it is different or not.
 *  [thomas2907](https://wordpress.org/support/users/thomas2907/)
 * (@thomas2907)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/local-subdirectory-multisite-problem/#post-16274338)
 * My problem is solved, see: [https://wordpress.org/support/topic/subdirectory-multisite-network-subdirectory-dashboard-and-website-not-working/](https://wordpress.org/support/topic/subdirectory-multisite-network-subdirectory-dashboard-and-website-not-working/)
 * You may want to try changing the following lines in your wp-config file – of 
   course after doing a back-up:
 * define( ‘DOMAIN_CURRENT_SITE’, ‘localhost/wp’ );
    define( ‘PATH_CURRENT_SITE’,‘/’);
 * All the best
    Thomas
 *  Thread Starter [benny239](https://wordpress.org/support/users/benny239/)
 * (@benny239)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/local-subdirectory-multisite-problem/#post-16274678)
 * [@thomas2907](https://wordpress.org/support/users/thomas2907/) thanks, but changing
   these lines in wp-config didn’t help, only access to the site administration 
   stopped working
 *  [thomas2907](https://wordpress.org/support/users/thomas2907/)
 * (@thomas2907)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/local-subdirectory-multisite-problem/#post-16274939)
 * Sorry to hear that this didn’t work.
 * Maybe Dennis van Veelen, who came up with the solution for my problem, can help
   you as.
 * Good luck!

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

The topic ‘local subdirectory multisite problem’ is closed to new replies.

## Tags

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

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 4 replies
 * 2 participants
 * Last reply from: [thomas2907](https://wordpress.org/support/users/thomas2907/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/local-subdirectory-multisite-problem/#post-16274939)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
