Title: htaccess is blocking a php function&#8230;
Last modified: August 30, 2016

---

# htaccess is blocking a php function…

 *  [nando99](https://wordpress.org/support/users/nando99/)
 * (@nando99)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/htaccess-is-blocking-a-php-function/)
 * not sure which line or setting it is, I’ve tried going setting by setting but
   no go. the only way the function works is if i disable the plugin or remove all
   the lines it inserted into the htaccess file…
 * the function is: file_put_contents
 * it updates the page but it leaves it blank…
 * the file that executes the function is inside wp-admin.
 * the htaccess lines I remove: [http://pastebin.com/2vr2USQ6](http://pastebin.com/2vr2USQ6)
 * any idea whats causing it to be blank?\
 * any help is appreciated, thanks in advance!
 * [https://wordpress.org/plugins/better-wp-security/](https://wordpress.org/plugins/better-wp-security/)

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

 *  [dwinden](https://wordpress.org/support/users/dwinden/)
 * (@dwinden)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/htaccess-is-blocking-a-php-function/#post-6395473)
 * Let’s assume (yes I know it’s dangerous) the blank page is caused by something
   in the .htaccess file.
 * Removing all iTSec plugin added lines from the .htaccess file makes the function
   work.
 * So disabling all iTSec plugin settings that write to the .htaccess file should
   also resolve the issue.
 * But if I understand correctly that is not the case ?
 * Try and change WP_DEBUG to true in wp-config.php file.
    Hopefully this way you’ll
   get an error msg displayed in the blank page.
 * dwinden
 *  Thread Starter [nando99](https://wordpress.org/support/users/nando99/)
 * (@nando99)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/htaccess-is-blocking-a-php-function/#post-6395549)
 * actually, i went through each setting again and its the HackRepair.com’s blacklist
   that’s causing my issue… I just disabled it for now, I wonder what on that list
   is causing the issue…
 * [http://pastebin.com/5Hw9KZnW](http://pastebin.com/5Hw9KZnW)
 *  [dwinden](https://wordpress.org/support/users/dwinden/)
 * (@dwinden)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/htaccess-is-blocking-a-php-function/#post-6395556)
 * Ah ok.
 * Your HackRepair.com blacklist does not seem to match the ones (.inc) included
   with the iTSec plugin. So you are probably using an updated one.
 * That said the ones currently included with the iTSec plugin have known issues
   and even iThemes recommends to keep this option disabled until further notice.
 * If you ever figure out which line causes your issue please let us know.
 * dwinden

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

The topic ‘htaccess is blocking a php function…’ 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

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

 * 3 replies
 * 2 participants
 * Last reply from: [dwinden](https://wordpress.org/support/users/dwinden/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/htaccess-is-blocking-a-php-function/#post-6395556)
 * Status: not resolved