• kentonnewby

    (@kentonnewby)


    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:
    https://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!

Viewing 1 replies (of 1 total)
  • esmi

    (@esmi)

    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?

Viewing 1 replies (of 1 total)
  • The topic ‘.htaccess being rewritten (with errors) by WordPress’ is closed to new replies.