Title: Sub directory 404 error
Last modified: August 20, 2016

---

# Sub directory 404 error

 *  [bazzablue](https://wordpress.org/support/users/bazzablue/)
 * (@bazzablue)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/sub-directory-404-error/)
 * I have set up a local install of WordPress using Xampp and am trying to use Multisite
   for the first time.
 * Having followed the instructions on the Codex everything goes ok until I try 
   and update the .htaccess file. When the .htaccess file is there nothing works–
   clicking on anything in the dashboard causes a 404 error. If I remove the .htaccess
   file I am able to view and use the dashboard of the main site but not the sub
   directory.

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

 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 1 month ago](https://wordpress.org/support/topic/sub-directory-404-error/#post-2728306)
 * Is mod-rewrite on?
 *  Thread Starter [bazzablue](https://wordpress.org/support/users/bazzablue/)
 * (@bazzablue)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/sub-directory-404-error/#post-2728332)
 * If that means removing the # from the following:
    LoadModule rewrite_module modules/
   mod_rewrite.so Then yes.
 * I have also changed all the AllowOverride to All.
 * I had a good look around the forums before posting and followed directions that
   you gave to others but have had no joy.
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 1 month ago](https://wordpress.org/support/topic/sub-directory-404-error/#post-2728382)
 * Did WP work, with pretty permalinks, BEFORE you turned on Multisite? That is 
   did you check on Singlesite?
 *  Thread Starter [bazzablue](https://wordpress.org/support/users/bazzablue/)
 * (@bazzablue)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/sub-directory-404-error/#post-2728420)
 * I didn’t try that so I have gone back and started again with a fresh install.
   In short they don’t. Having changed the permalink I clicked on one of the menu
   items and my screen displayed the following:
 * Server error!
 * The server encountered an internal error and was unable to complete your request.
   Either the server is overloaded or there was an error in a CGI script.
 * If you think this is a server error, please contact the webmaster.
 * Error 500
 * localhost
    05/04/12 22:05:43 Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e
   PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 1 month ago](https://wordpress.org/support/topic/sub-directory-404-error/#post-2728486)
 * > I didn’t try that so I have gone back and started again with a fresh install.
   > In short they don’t.
 * That’s your problem.
 * Multisite requires permalinks to work correctly.
 * Did you update your .htaccess when you turned on permalinks in Single site?
 *  Thread Starter [bazzablue](https://wordpress.org/support/users/bazzablue/)
 * (@bazzablue)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/sub-directory-404-error/#post-2728501)
 * What info needs to be updated in the .htaccess? I have seen the code that needs
   to be added when switching to multisite but not for single site.
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 1 month ago](https://wordpress.org/support/topic/sub-directory-404-error/#post-2728502)
 * Single site is
 *     ```
       # BEGIN WordPress
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /
       RewriteRule ^index\.php$ - [L]
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
       </IfModule>
       # END WordPress
       ```
   
 *  Thread Starter [bazzablue](https://wordpress.org/support/users/bazzablue/)
 * (@bazzablue)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/sub-directory-404-error/#post-2728506)
 * Ok just opened my htaccess file and that is what is there apart from the RewriteRule./
   index.php [L} having some extra folder extensions (xampp/sitename/) before /index.
   php
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 1 month ago](https://wordpress.org/support/topic/sub-directory-404-error/#post-2728511)
 * You shouldn’t. If WP is running from the root of your domain (i.e. domain.com)
   then there’s no need for the extra folders….
 * But you’re running XAMPP and that’s out of my bag o’ tricks :(‘
 * I’d ask how to get pretty URLs working in [http://wordpress.org/support/forum/localhost-installs](http://wordpress.org/support/forum/localhost-installs)–
   where the locally smart folks live.

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

The topic ‘Sub directory 404 error’ is closed to new replies.

## Tags

 * [404-error](https://wordpress.org/support/topic-tag/404-error/)
 * [multisite](https://wordpress.org/support/topic-tag/multisite/)
 * [Sub-directory](https://wordpress.org/support/topic-tag/sub-directory/)

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 9 replies
 * 2 participants
 * Last reply from: [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * Last activity: [14 years, 1 month ago](https://wordpress.org/support/topic/sub-directory-404-error/#post-2728511)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
