Title: multiple .htaccess files
Last modified: August 18, 2016

---

# multiple .htaccess files

 *  [gaszer](https://wordpress.org/support/users/gaszer/)
 * (@gaszer)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/multiple-htaccess-files/)
 * I have two instances of WordPress running in separate directories. I decided 
   to use the custom permalinks on the first install, so I created a .htaccess file
   for the rewrite rules and put that in directory1. …works fine.
    Then, I decided
   it would be good to have the custom permalinks on the second installation as 
   well. However, if I put a .htaccess file in directory2 (with the rewrite rules),
   I get internal server error pages, whenever I try to access that directory or
   the WP administration. (Directory1 install still works fine). I thought maybe
   the two .htaccess files were conflicting with each other, so I created a merged.
   htaccess file and put this on the root of the server – then neither of the directories
   worked. So, I’m back to the one .htaccess file in directory1, and no custom permalinks
   on directory2…. ???

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

 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/multiple-htaccess-files/#post-76467)
 * Each directory can have it’s own permalinks, so long as they don’t conflict unduly
   with a htaccess in a parent directory.
 *  [Sushubh](https://wordpress.org/support/users/sushubh/)
 * (@sushubh)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/multiple-htaccess-files/#post-76478)
 * that means, is one WP running inside another WP folder?
 *  Thread Starter [gaszer](https://wordpress.org/support/users/gaszer/)
 * (@gaszer)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/multiple-htaccess-files/#post-76512)
 * No, there are two separate installs in two different directories…..
 *  Thread Starter [gaszer](https://wordpress.org/support/users/gaszer/)
 * (@gaszer)
 * [21 years, 9 months ago](https://wordpress.org/support/topic/multiple-htaccess-files/#post-76513)
 * Okay, got it working. It looks like the .htaccess file I created locally and 
   then uploaded was corrupt in some way (it seemed to have the right permissions),
   but as soon as I made a blank .htaccess file, uploaded it, and then edited it
   with WordPress, it works fine!

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

The topic ‘multiple .htaccess files’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [gaszer](https://wordpress.org/support/users/gaszer/)
 * Last activity: [21 years, 9 months ago](https://wordpress.org/support/topic/multiple-htaccess-files/#post-76513)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
