Title: htaccess problem with plugin
Last modified: August 31, 2016

---

# htaccess problem with plugin

 *  Resolved [achugar](https://wordpress.org/support/users/achugar/)
 * (@achugar)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/htaccess-problem-with-plugin/)
 * In my .htaccess i have:
 * <FilesMatch “\.(?i:php)$”>
    <IfModule !mod_authz_core.c> Order allow,deny Deny
   from all </IfModule> <IfModule mod_authz_core.c> Require all denied </IfModule
   > </FilesMatch>
 * But the problem is that this configuration broke de suscription proccess of the
   plugin becouse doesnt allo to access php files.
 * ¿How con i keep the hardering htaccess security configuration and still access
   the plugin php files in order the plugin to work?
 * [https://wordpress.org/plugins/newsletter/](https://wordpress.org/plugins/newsletter/)

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

 *  Plugin Author [Stefano Lissa](https://wordpress.org/support/users/satollo/)
 * (@satollo)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/htaccess-problem-with-plugin/#post-7104085)
 * You could change the regular expression and enable the specific files you need
   to be accessed.
 *  Thread Starter [achugar](https://wordpress.org/support/users/achugar/)
 * (@achugar)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/htaccess-problem-with-plugin/#post-7104088)
 * Thanks but i i tried and doesnt work. Maybe can i exclude specific folder in 
   the restriction?
 * For instance: …”/plugins/newsletter”
 * I tried to do that but didnt work, maybe i have wrong code in the htaccess.
 *  Plugin Author [Stefano Lissa](https://wordpress.org/support/users/satollo/)
 * (@satollo)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/htaccess-problem-with-plugin/#post-7104101)
 * Add an .htaccess in the folder you want to allow with inverted rules.
 *  Thread Starter [achugar](https://wordpress.org/support/users/achugar/)
 * (@achugar)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/htaccess-problem-with-plugin/#post-7104106)
 * Thanks, it works!…but:
 * Now in “wp-content/plugins/newsletter” i have an .htaccess with this code:
 * <FilesMatch “\.(?i:php)$”>
    <IfModule !mod_authz_core.c> Order allow,deny Allow
   from all </IfModule> <IfModule mod_authz_core.c> Require all granted </IfModule
   > </FilesMatch>
 * Im worried about this is too much unsecured. Maybe i can allow acces only to 
   the needed files in order the plugin to work.
 * Thanks a lot

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

The topic ‘htaccess problem with plugin’ is closed to new replies.

 * ![](https://ps.w.org/newsletter/assets/icon-256x256.png?rev=1052028)
 * [Newsletter - Send awesome emails from WordPress](https://wordpress.org/plugins/newsletter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/newsletter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/newsletter/)
 * [Active Topics](https://wordpress.org/support/plugin/newsletter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/newsletter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/newsletter/reviews/)

## Tags

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

 * 4 replies
 * 2 participants
 * Last reply from: [achugar](https://wordpress.org/support/users/achugar/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/htaccess-problem-with-plugin/#post-7104106)
 * Status: resolved