Title: .htaccess changes itself
Last modified: August 18, 2016

---

# .htaccess changes itself

 *  [arrowj](https://wordpress.org/support/users/arrowj/)
 * (@arrowj)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/htaccess-changes-itself/)
 * Greetings,
 * After upgrading to 2.2 I have been experiencing the “index-extra.php dashboard
   error” as discussed in other threads. But here is my strange problem. I used 
   the sugested workaround for this problem by changing my .htaccess file. I added
   the following text:
 * <IfModule mod_security.c>
    SecFilterInheritance Off </IfModule>
 * It works and everything is as it should be, but every once in a while it stops
   working, and when I open my .htaccess file my changes have been erased! Any idea
   why this is happening?
 * Also, are the developers of WordPress going to address this issue or will we 
   be forever looking for a way to deal with the problem or having to contact our
   hosts?
 * Thanks in advance!

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

 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [18 years, 9 months ago](https://wordpress.org/support/topic/htaccess-changes-itself/#post-588816)
 * After you add the changes to that file, give it file permissions of 444 so that
   other systems can’t change it by accident or design.
 * And no, no fix will be coming from WordPress because this is not a WordPress 
   problem. There is no workaround, your host is running mod_security which is intentionally
   made to interfere and break these sorts of things. Switch to a host that doesn’t
   run mod_security or use the .htaccess rule.
 *  Thread Starter [arrowj](https://wordpress.org/support/users/arrowj/)
 * (@arrowj)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/htaccess-changes-itself/#post-588837)
 * I changed the permissions. I appreciate your response. I don’t really know anything
   abut mod_security, but as long as the .htaccess fix works I can live with that.
 * I read that it was a problem on the end of the host, but I thought it was because
   of something the WordPress developers changed. Your answer is very succinct and
   clears this up to my satisfaction…thanks!

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

The topic ‘.htaccess changes itself’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [arrowj](https://wordpress.org/support/users/arrowj/)
 * Last activity: [18 years, 9 months ago](https://wordpress.org/support/topic/htaccess-changes-itself/#post-588837)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
