Title: [Plugin: Better WP Security] Allow Access for Folder
Last modified: August 20, 2016

---

# [Plugin: Better WP Security] Allow Access for Folder

 *  Resolved [newterminator3](https://wordpress.org/support/users/newterminator3/)
 * (@newterminator3)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-better-wp-security-allow-access-for-folder/)
 * Hi Chris
    First of all I would like to thank you for writing this awesome plugin…
 * Secondly I would like to ask a quick question…
 * There is a folder(with php files) in my web directory along with wordpress, and
   I would like the htaccess file to allow access to that folder files.
 * Presently if i try to access the directory files it gives me a 404 page error.
 * So if you could tell me what piece of code i could insert in the htaccess file
   that allows to the folder which is called “friend”
 * [http://wordpress.org/extend/plugins/better-wp-security/](http://wordpress.org/extend/plugins/better-wp-security/)

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

 *  [Bit51 (part of the iThemes family)](https://wordpress.org/support/users/bit51/)
 * (@bit51)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-better-wp-security-allow-access-for-folder/#post-2816037)
 * Are you trying to allow directory browsing in that folder or are you trying to
   directly access a file?
 *  Thread Starter [newterminator3](https://wordpress.org/support/users/newterminator3/)
 * (@newterminator3)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-better-wp-security-allow-access-for-folder/#post-2816325)
 * I m trying to directly access a file in that folder called “friend”
 *  [Bit51 (part of the iThemes family)](https://wordpress.org/support/users/bit51/)
 * (@bit51)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-better-wp-security-allow-access-for-folder/#post-2816351)
 * Interesting. so you’re going to [http://yoursite.com/friend/file](http://yoursite.com/friend/file)?
   This is not an operation that should be affected by anything in Better WP Security.
   You can try removing the Better WP Security section from your .htaccess to confirm.
 *  Thread Starter [newterminator3](https://wordpress.org/support/users/newterminator3/)
 * (@newterminator3)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-better-wp-security-allow-access-for-folder/#post-2816388)
 * Yes i m trying to go to [http://yoursite.com/friend/file.php](http://yoursite.com/friend/file.php)
 * Okay Chris so I removed the Better WP Security section from the .htaccess file
   and tested it…still i was facing the same problem…
 * so you are right that its not issue of the plugin …
 * But if its not too much may i ask for your guidance in resolving the issue…
 * as i noticed that accessing a [http://yoursite.com/friend/file.png](http://yoursite.com/friend/file.png)
   
   file is okay …. but accessing a [http://yoursite.com/friend/file.php](http://yoursite.com/friend/file.php)
   gives a 404 error page from wordpress. so what do u think is causing the difference
   between a .php file and a .png file
 *  [Bit51 (part of the iThemes family)](https://wordpress.org/support/users/bit51/)
 * (@bit51)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-better-wp-security-allow-access-for-folder/#post-2816435)
 * Is there something in your file that could be causing the redirect? Perhaps a
   location statement?

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

The topic ‘[Plugin: Better WP Security] Allow Access for Folder’ is closed to new
replies.

 * ![](https://ps.w.org/better-wp-security/assets/icon.svg?rev=3529351)
 * [Kadence Security – Password, Two Factor Authentication, and Brute Force Protection](https://wordpress.org/plugins/better-wp-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-wp-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-wp-security/)
 * [Active Topics](https://wordpress.org/support/plugin/better-wp-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-wp-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-wp-security/reviews/)

## Tags

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

 * 5 replies
 * 2 participants
 * Last reply from: [Bit51 (part of the iThemes family)](https://wordpress.org/support/users/bit51/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-better-wp-security-allow-access-for-folder/#post-2816435)
 * Status: resolved