Title: Subdirectory and RewriteEngine issues&#8230;
Last modified: August 18, 2016

---

# Subdirectory and RewriteEngine issues…

 *  [abyssknight](https://wordpress.org/support/users/abyssknight/)
 * (@abyssknight)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/subdirectory-and-rewriteengine-issues/)
 * I have tried for a good 2 hours to figure this out. No matter what I do to my
   root .htaccess, or the subdirectory .htaccess I cannot get WordPress to ignore
   the darn subdirectory. Basically, I have multiple subdirectories that I do not
   want WordPress to mod_rewrite. I have installed wordpress into its own folder,
   and moved the index.php up to the root of my website. For some reason, if I modify
   the rewrite rules to ignore /dev/ I get a forbidden on my main page but the subdirectory
   htaccess permissions work (i.e. the AuthType Basic instructions in that subdirectories
   own .htaccess).
 * Main issue is that I need to password protect directories, and I need to not 
   allow indexing (viewing of all contents without an index page).
 * Please, anyone with an idea please send it my way. I have tried everything listed
   on these boards at least twice.
 * Thanks,
    – William

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

 *  [scaturan](https://wordpress.org/support/users/scaturan/)
 * (@scaturan)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/subdirectory-and-rewriteengine-issues/#post-319099)
 * can’t you turn-off mod_rewrite using the .htaccess fie that resides inside the
   excluded directory? otherwise, using the root .htaccess may create some issues.
 * and exactly what mod_rewrite directives are you using in your .htaccess file 
   disable it?
 *  Thread Starter [abyssknight](https://wordpress.org/support/users/abyssknight/)
 * (@abyssknight)
 * [20 years, 5 months ago](https://wordpress.org/support/topic/subdirectory-and-rewriteengine-issues/#post-319110)
 * “RewriteEngine off”, which does not work for some reason, is what I was using
   to turn it off.
 * Thanks for the reply, by the way.
 *  [Kunjan](https://wordpress.org/support/users/kunjan/)
 * (@kunjan)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/subdirectory-and-rewriteengine-issues/#post-319566)
 * I searched this forum for this exact same problem. however there is no resolution.
   I have the same problem. putting a .htaccess in a sub dir with rewriteengine 
   off doesnt help! and I still have the default wordpress .htaccess.
 * What should i do?
 * Thanks!
 * wp install: [http://kunjan.net](http://kunjan.net)
    sub dir in question: http://
   kunjan.net/stats/
 *  [Kunjan](https://wordpress.org/support/users/kunjan/)
 * (@kunjan)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/subdirectory-and-rewriteengine-issues/#post-319567)
 * Adding “AllowOverride All” to the root .htaccess
 * breaks the wp-rewrites
 *  [Kunjan](https://wordpress.org/support/users/kunjan/)
 * (@kunjan)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/subdirectory-and-rewriteengine-issues/#post-319568)
 * /stats/ folder doesnt seem to work with dreamhost
 * renaming that folder helped!

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

The topic ‘Subdirectory and RewriteEngine issues…’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [Kunjan](https://wordpress.org/support/users/kunjan/)
 * Last activity: [20 years, 2 months ago](https://wordpress.org/support/topic/subdirectory-and-rewriteengine-issues/#post-319568)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
