WordPress.org

Ready to get started?Download WordPress

Forums

htaccess being changed by WP? (4 posts)

  1. da_buddha
    Member
    Posted 7 years ago #

    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...

  2. Chris_K
    Member
    Posted 7 years ago #

    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.

  3. jrawle
    Member
    Posted 7 years ago #

    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?

  4. da_buddha
    Member
    Posted 7 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags