Title: .htaccess file getting corrupted
Last modified: August 22, 2016

---

# .htaccess file getting corrupted

 *  [creativewebdesigns03](https://wordpress.org/support/users/creativewebdesigns03/)
 * (@creativewebdesigns03)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/htaccess-file-getting-corrupted/)
 * I am regularly getting an internal error 500 on a site I manage. The problem 
   I see is that the following is being written over and over again until the .htaccess
   file gets corrupted, causing the 500 error.
 * # BEGIN WordPress
    <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule
   ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}!-
   d RewriteRule . /index.php [L] </IfModule>
 * # END WordPress
    # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On 
   RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-
   f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule
   >
 * # END WordPress
    # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On 
   RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-
   f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule
   >
 * # END WordPress
 * [https://wordpress.org/plugins/wordfence/](https://wordpress.org/plugins/wordfence/)

The topic ‘.htaccess file getting corrupted’ 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/)

 * 0 replies
 * 1 participant
 * Last reply from: [creativewebdesigns03](https://wordpress.org/support/users/creativewebdesigns03/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/htaccess-file-getting-corrupted/)
 * Status: not resolved