Title: Multisite &#8211; Subdirectories &#8211; 404 Error
Last modified: August 30, 2016

---

# Multisite – Subdirectories – 404 Error

 *  [contiand](https://wordpress.org/support/users/contiand/)
 * (@contiand)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/multisite-subdirectories-404-error/)
 * Hi,
 * htaccess below:
 *     ```
       # 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
   
       # Change PHP memory limit, time limit,
       # max post size, and max upload file size
       php_value memory_limit 256M
       php_value max_execution_time 300
       php_value upload_max_filesize 32M
       php_value post_max_size 32M
       ```
   
 * Note sure in which directory should the .htaccess reside ( I tried in both wordpress
   folder and one step up within the html folder) – same result:
 * _Not Found_
 * The requested URL /wordpress/sitea/wp-admin/ was not found on this server.
 * What can I check further please?

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

 *  Thread Starter [contiand](https://wordpress.org/support/users/contiand/)
 * (@contiand)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/multisite-subdirectories-404-error/#post-6568729)
 * Since I received no feedback so far these are the Network Setup config steps 
   which I have also tried:
 *     ```
       define('MULTISITE', true);
       define('SUBDOMAIN_INSTALL', false);
       define('DOMAIN_CURRENT_SITE', '192.168.xxx.xxx');
       define('PATH_CURRENT_SITE', '/wordpress/');
       define('SITE_ID_CURRENT_SITE', 1);
       define('BLOG_ID_CURRENT_SITE', 1);
       ```
   
 *     ```
       RewriteEngine On
       RewriteBase /wordpress/
       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]
       ```
   
 * Can someone suggest what troubleshooting should be done, what happens when a 
   new site is created, do I need to see files in the subdirectory created ?
 * Thanks
 *  [MeharBhagat](https://wordpress.org/support/users/meharbhagat/)
 * (@meharbhagat)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/multisite-subdirectories-404-error/#post-6568876)
 * Contland,
 * I’m not sure if your issues are resolved but incase not below details might help
   you.
 * .htaccess resides in the main home directory of your WordPress installation. 
   save it where folders like wp-admin, wp-content, etc resides.
 * and for code in .htaccess, see below,
 *     ```
       # 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).*) $2 [L]
       RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
       RewriteRule . index.php [L]
       </IfModule>
       # END WordPress
       ```
   
 * The below goes into wp-config.php file in the bottom area
 *     ```
       /* Multisite */
       define( 'WP_ALLOW_MULTISITE', true );
       define('MULTISITE', true);
       define('SUBDOMAIN_INSTALL', false);
       define('DOMAIN_CURRENT_SITE', 'abc.com');
       define('PATH_CURRENT_SITE', '/');
       define('SITE_ID_CURRENT_SITE', 1);
       define('BLOG_ID_CURRENT_SITE', 1);
   
       /* That's all, stop editing! Happy blogging. */
   
       /** Absolute path to the WordPress directory. */
       if ( !defined('ABSPATH') )
       	define('ABSPATH', dirname(__FILE__) . '/');
   
       /** Sets up WordPress vars and included files. */
       require_once(ABSPATH . 'wp-settings.php');
       ```
   
 * and if you have installed in sub- directory
 *     ```
       define('DOMAIN_CURRENT_SITE', 'abc.com/dir');
       define('PATH_CURRENT_SITE', '/dir');
       ```
   

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

The topic ‘Multisite – Subdirectories – 404 Error’ is closed to new replies.

## Tags

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

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 2 replies
 * 2 participants
 * Last reply from: [MeharBhagat](https://wordpress.org/support/users/meharbhagat/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/multisite-subdirectories-404-error/#post-6568876)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
