Title: .htaccess Excluding a directory
Last modified: August 19, 2016

---

# .htaccess Excluding a directory

 *  [lifeisrisky](https://wordpress.org/support/users/lifeisrisky/)
 * (@lifeisrisky)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/htaccess-excluding-a-directory/)
 * My blog is installed in directory /blog/ and I believe I have the .htacess correct
   because I can type in [http://domainc.com](http://domainc.com) or [http://domain.com/blog/](http://domain.com/blog/)
   and get my homepage. The problem is I want to be able to put in [http://domain.com/test/test.php](http://domain.com/test/test.php)
   and have a file run but it keeps changing the address to [http://domain.com/blog/test/test.php](http://domain.com/blog/test/test.php)
   and giving me an error. Any suggestions on how I can exclude this one directory?
 * here is my current htaccess file
    — Options +FollowSymLinks DirectoryIndex index.
   php
 * RewriteEngine On
    RewriteBase /blog/ RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /
   blog/index\.php\ HTTP/ RewriteRule ^index\.php$ [http://domain.com/blog/](http://domain.com/blog/)[
   R=301,L]
 * RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d RewriteRule./
   blog/index.php [L] —-

The topic ‘.htaccess Excluding a directory’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 0 replies
 * 1 participant
 * Last reply from: [lifeisrisky](https://wordpress.org/support/users/lifeisrisky/)
 * Last activity: [18 years, 2 months ago](https://wordpress.org/support/topic/htaccess-excluding-a-directory/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
