Title: Regular 500 server errors
Last modified: August 22, 2016

---

# Regular 500 server errors

 *  [irlien](https://wordpress.org/support/users/irlien/)
 * (@irlien)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/regular-500-server-errors/)
 * Hi, I love this plugin!
 * I enabled Falcon Engine some time back. Ever since, I regularly get error 500
   messages and my hosting provider has to rewrite my .htaccess file which solves
   the problem. However, this isn’t ideal. My site experiences downtime. The hosting
   provider says: ‘It maybe your .htaccess file that’s being written to a block 
   ip plugin.
    Try using a default wordpress .htaccess file’
 * Have I misconfigured the plug-in somehow? Thanks for any tips.
 * [https://wordpress.org/plugins/wordfence/](https://wordpress.org/plugins/wordfence/)

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

 *  Thread Starter [irlien](https://wordpress.org/support/users/irlien/)
 * (@irlien)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/regular-500-server-errors/#post-5779889)
 * Anybody got any tips? My site is offline again. I think I’ll just have to disable
   WF…
 *  [locallens](https://wordpress.org/support/users/locallens/)
 * (@locallens)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/regular-500-server-errors/#post-5779904)
 * I’m having the very same problem. Falcon Engine messes up the htcaccess somehow.
   I just disabled mine, but hopefully we can figure out the source of this problem.
 *  [WFSupport](https://wordpress.org/support/users/wfsupport/)
 * (@wfsupport)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/regular-500-server-errors/#post-5779942)
 * You need to check and see if the information is incomplete when it gets added
   to the htaccess file.
 * Here is what our code looks like from a default install. This goes at the top
   of the .htaccess file:
 * **_
    #WFCACHECODE – Do not remove this line. Disable Web Caching in Wordfence
   to remove this data. <IfModule mod\_deflate.c> AddOutputFilterByType DEFLATE 
   text/css text/x-component application/x-javascript application/javascript text/
   javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd
   text/xsl text/xml image/x-icon application/json <IfModule mod\_headers.c> Header
   append Vary User-Agent env=!dont-vary </IfModule> <IfModule mod\_mime.c> AddOutputFilter
   DEFLATE js css htm html xml </IfModule> </IfModule> <IfModule mod\_mime.c> AddType
   text/html .html\_gzip AddEncoding gzip .html\_gzip AddType text/xml .xml\_gzip
   AddEncoding gzip .xml\_gzip </IfModule> <IfModule mod\_setenvif.c> SetEnvIfNoCase
   Request\_URI \.html\_gzip$ no-gzip SetEnvIfNoCase Request\_URI \.xml\_gzip$ no-
   gzip </IfModule> <IfModule mod\_headers.c> Header set Vary “Accept-Encoding, 
   Cookie” </IfModule> <IfModule mod\_rewrite.c> #Prevents garbled chars in cached
   files if there is no default charset. AddDefaultCharset utf-8
 *  #Cache rules:
    RewriteEngine On RewriteBase / RewriteCond %{HTTPS} on RewriteRule.*–[
   E=WRDFNC_HTTPS:_https] RewriteCond %{HTTP:Accept-Encoding} gzip RewriteRule .*–[
   E=WRDFNC_ENC:_gzip] RewriteCond %{REQUEST_METHOD} !=POST RewriteCond %{HTTPS}
   off RewriteCond %{QUERY_STRING} ^(?:\d+=\d+)?$ RewriteCond %{REQUEST_URI} (?:\/
   |\.html)$ [NC]
 *  RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|wf_logout|wordpress_logged_in
   |wptouch_switch_toggle|wpmp_switcher) [NC]
 *  RewriteCond %{REQUEST_URI} \/*([^\/]*)\/*([^\/]*)\/*([^\/]*)\/*([^\/]*)\/*([
   ^\/]*)(.*)$
    RewriteCond “%{DOCUMENT_ROOT}/wp-content/wfcache/%{HTTP_HOST}_%1/%
   2~%3~%4~%5~%6_wfcache%{ENV:WRDFNC_HTTPS}.html%{ENV:WRDFNC_ENC}” -f RewriteRule\/*([
   ^\/]*)\/*([^\/]*)\/*([^\/]*)\/*([^\/]*)\/*([^\/]*)(.*)$ “/wp-content/wfcache/%{
   HTTP_HOST}_$1/$2~$3~$4~$5~$6_wfcache%{ENV:WRDFNC_HTTPS}.html%{ENV:WRDFNC_ENC}”[
   L] </IfModule> #Do not remove this line. Disable Web caching in Wordfence to 
   remove this data – WFCACHECODE
 * Check and see if yours looks like this.
 * tim

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

The topic ‘Regular 500 server errors’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [WFSupport](https://wordpress.org/support/users/wfsupport/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/regular-500-server-errors/#post-5779942)
 * Status: not resolved