Title: htaccess changing with update?
Last modified: August 18, 2016

---

# htaccess changing with update?

 *  [Kahil](https://wordpress.org/support/users/kahil/)
 * (@kahil)
 * [20 years ago](https://wordpress.org/support/topic/htaccess-changing-with-update/)
 * ever since I updated to the new 2.03, it keeps changing the format of my htaccess
   file. Before I had it set up with modrewrites so that I can attempt to block 
   spammers and robots. It is just a little change, but apparently it is enough 
   to break those modrewrites so that they don’t work. This of course is causing
   me to get bombarded by these people again…
 * # BEGIN WordPress
    <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond%{
   REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.
   php </IfModule> # END WordPress
 * somehow it is getting changed to….
 * # BEGIN WordPress
    <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond%{
   REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.
   php [L] </IfModule>
 * # END WordPress
 * I hae not done this myself and it all started once I upgraded to this supposedly
   better version 2.03…
 * is there a way to keep wordpress from changing this like that?
 * Thank you

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

 *  [Mark Jaquith](https://wordpress.org/support/users/markjaquith/)
 * (@markjaquith)
 * [20 years ago](https://wordpress.org/support/topic/htaccess-changing-with-update/#post-399216)
 * Make sure your WP rewrite rules are at the bottom of your `.htaccess` … nothing
   else below it.
 *  Thread Starter [Kahil](https://wordpress.org/support/users/kahil/)
 * (@kahil)
 * [20 years ago](https://wordpress.org/support/topic/htaccess-changing-with-update/#post-399263)
 * they are and it still does this…
 *  [piggie](https://wordpress.org/support/users/piggie/)
 * (@piggie)
 * [19 years, 11 months ago](https://wordpress.org/support/topic/htaccess-changing-with-update/#post-399777)
 * Just a guess, but if you make .htaccess 644, thus not writeable by wordpress,
   it can’t change it.

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

The topic ‘htaccess changing with update?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [piggie](https://wordpress.org/support/users/piggie/)
 * Last activity: [19 years, 11 months ago](https://wordpress.org/support/topic/htaccess-changing-with-update/#post-399777)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
