WordPress.org

Ready to get started?Download WordPress

Forums

.htaccess being rewritten (with errors) by WordPress (2 posts)

  1. kentonnewby
    Member
    Posted 4 years ago #

    Just about every night, WP rewrites my htaccess file. This causes my site to crash with a 500 server error. WP is also overwriting other parts of my htaccess file.

    I know it's rewriting because of custom permalinks and I don't want to change that and go back to the default type of links used for posts, etc.

    I've tried doing what's described in this article to stop WP from rewriting parts of my htaccess file:
    http://www.webpronews.com/blogtalk/2007/06/11/keep-wordpress-from-overwriting-custom-htaccess-rules

    I've also tried changing permissions on htaccess to 444 but I can't seem to change them for some reason (perhaps that's something to talk to my web host about?).

    I've also deactivated any plugins that look like they might do any rewriting of links, etc or any other stuff that might involve htaccess, but I might have missed something to be honest.

    Any ideas on what's going on or how to fix this?

    Thanks!

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    As far as I'm aware, WP won't re-write your .htaccess file unless you change your permalink structure. Have you tried:

    - deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the default theme to rule out any theme-related problems?

Topic Closed

This topic has been closed to new replies.

About this Topic