Title: Subdirectory Problems
Last modified: August 20, 2016

---

# Subdirectory Problems

 *  Resolved [darcmosch](https://wordpress.org/support/users/darcmosch/)
 * (@darcmosch)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/subdirectory-problems/)
 * I am having trouble setting up my network. Every site I cannot get to the front
   or backend of any of my subdirectory sites. All the themes uploaded correctly
   and everytime I navigate I get a 404 Error and Object Not Found. I am sure the
   answer is on here somewhere but I cannot find what is my problem. I hope to hear
   from someone soon. Thanks

Viewing 15 replies - 1 through 15 (of 47 total)

1 [2](https://wordpress.org/support/topic/subdirectory-problems/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/subdirectory-problems/page/3/?output_format=md)
[4](https://wordpress.org/support/topic/subdirectory-problems/page/4/?output_format=md)
[→](https://wordpress.org/support/topic/subdirectory-problems/page/2/?output_format=md)

 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/subdirectory-problems/#post-2095439)
 * Did you pick subdomains or subfolders?
 *  Thread Starter [darcmosch](https://wordpress.org/support/users/darcmosch/)
 * (@darcmosch)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/subdirectory-problems/#post-2095447)
 * Oh, yes I forgot to mention I sm doing it on XAMPP on a localhost. I am pretty
   sure from reading about this problem that it is an htaccess problem but I’m not
   sure how to fix it exactly. In my XAMPP htaccess is in a separate folder called“
   forbidden” which I think is what is causing the problem but am not sure how to
   go about fixing it.
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/subdirectory-problems/#post-2095451)
 * You need to create a NEW htaccess file in the same folder where the wp-config
   file is and paste in the lines the network setup gave you.
 *  Thread Starter [darcmosch](https://wordpress.org/support/users/darcmosch/)
 * (@darcmosch)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/subdirectory-problems/#post-2095453)
 * Ok, I figured it was something like that, so my htaccess file should say:
 *     ```
       AuthType Basic
       AuthName "FORBIDDEN AREA"
       AuthUserfile "../htdocs/forbidden/.htpasswd"
       Require valid-user
   
       RewriteEngine On
       RewriteBase /blog/
       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]
       ```
   
 *  Thread Starter [darcmosch](https://wordpress.org/support/users/darcmosch/)
 * (@darcmosch)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/subdirectory-problems/#post-2095455)
 * Last time I did just that, it said that it could not connect to my localhost
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/subdirectory-problems/#post-2095481)
 * > AuthType Basic
   >  AuthName “FORBIDDEN AREA” AuthUserfile “../htdocs/forbidden/.
   > htpasswd” Require valid-user
 * Remove that part.
 *  Thread Starter [darcmosch](https://wordpress.org/support/users/darcmosch/)
 * (@darcmosch)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/subdirectory-problems/#post-2095483)
 * Ok, I’m almost there! I can now access the sites but only the HTML shows up no
   images, CSS, JS, etc.
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/subdirectory-problems/#post-2095485)
 * The htaccess file is not being read properly. talk to your host so they can kick
   the box into submisison.
 *  Thread Starter [darcmosch](https://wordpress.org/support/users/darcmosch/)
 * (@darcmosch)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/subdirectory-problems/#post-2095486)
 * even if it is localhost?
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 10 months ago](https://wordpress.org/support/topic/subdirectory-problems/#post-2095487)
 * Then it’s not reading your .htaccess correctly. Make sure allowOverride is set
   to All on your httpd.conf (or whatever passes for that with XAMMP)
 *  Thread Starter [darcmosch](https://wordpress.org/support/users/darcmosch/)
 * (@darcmosch)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/subdirectory-problems/#post-2095488)
 * Ok, I thought I did that, here’s my httpd.conf file:
 * [Large code excerpt removed by moderator per [forum rules](http://codex.wordpress.org/Forum_Welcome#Posting_Code).
   Please use [the pastebin](http://wordpress.pastebin.com/) for all large code 
   excerpts. It works better anyway.]
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/subdirectory-problems/#post-2095497)
 * “AllowOverride FileInfo Options” is what you need.
 *  Thread Starter [darcmosch](https://wordpress.org/support/users/darcmosch/)
 * (@darcmosch)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/subdirectory-problems/#post-2095508)
 * Ok, so do I replace both of these or either?
 *     ```
       Options Indexes FollowSymLinks Includes ExecCGI
   
           #
           # AllowOverride controls what directives may be placed in .htaccess files.
           # It can be "All", "None", or any combination of the keywords:
           #   Options FileInfo AuthConfig Limit
           #
           AllowOverride All
   
           #
           # Controls who can get stuff from this server.
           #
           Order allow,deny
           Allow from all
   
       </Directory>
       ```
   
 * OR
 *     ```
       #
           # AllowOverride controls what directives may be placed in .htaccess files.
           # It can be "All", "None", or any combination of the keywords:
           #   Options FileInfo AuthConfig Limit
           #
           AllowOverride All
   
           #
           # Controls who can get stuff from this server.
           #
           Order allow,deny
           Allow from all
   
       </Directory>
       ```
   
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 10 months ago](https://wordpress.org/support/topic/subdirectory-problems/#post-2095511)
 * You need to use CODE tags (the back ticks, it’s the tilde key to the left of 
   the number 1 on most keyboards) to show code.
 * Do you mean you have two of those calls in your httpd.conf? What’s the top `<
   Directory...>` stuff say?
 *  Thread Starter [darcmosch](https://wordpress.org/support/users/darcmosch/)
 * (@darcmosch)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/subdirectory-problems/#post-2095515)
 *     ```
       <Directory />
           Options FollowSymLinks
           AllowOverride None
           Order deny,allow
           Deny from all
       </Directory>
       ```
   
 * Here is the top directory

Viewing 15 replies - 1 through 15 (of 47 total)

1 [2](https://wordpress.org/support/topic/subdirectory-problems/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/subdirectory-problems/page/3/?output_format=md)
[4](https://wordpress.org/support/topic/subdirectory-problems/page/4/?output_format=md)
[→](https://wordpress.org/support/topic/subdirectory-problems/page/2/?output_format=md)

The topic ‘Subdirectory Problems’ is closed to new replies.

## Tags

 * [3.0](https://wordpress.org/support/topic-tag/3-0/)
 * [found](https://wordpress.org/support/topic-tag/found/)
 * [object](https://wordpress.org/support/topic-tag/object/)
 * [problem](https://wordpress.org/support/topic-tag/problem/)
 * [subdirectory](https://wordpress.org/support/topic-tag/subdirectory/)

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 47 replies
 * 4 participants
 * Last reply from: [iubneih](https://wordpress.org/support/users/iubneih/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/subdirectory-problems/page/4/#post-2095757)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
