Support » How-To and Troubleshooting » htaccess being changed by WP?

htaccess being changed by WP?

  • I was wondering how I can prevent WordPress from changing my htaccess file back to the default all the time? I tried setting the file to 644 (-rw-r–r–) and yet it still overwrites. Is there somewhere that I can hack it to make it stop writing over it? Or if I turn off owner writing, won’t that disable even me from editing the file? Not sure what to do…

Viewing 3 replies - 1 through 3 (of 3 total)
  • Perhaps set it to 444? Just bump to 644 when you want to make manual changes and then flip it back to 444 when done.

    WordPress should only change the section between BEGIN WordPress and END WordPress. It shouldn’t remove other lines you habe put in htaccess. Are you finding it does touch other parts of the file?

    Yea, actually… I thought it changed everything. It refreshes it back to the default. Not sure… I’ve set it to only r-r-r, so I’ll leave it at that for now.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘htaccess being changed by WP?’ is closed to new replies.