.htaccess corrupted, entire web site crashes — twice
-
Twice now my web site has been corrupted when editing WooCommerce settings. Each time, .htaccess was written incorrectly. The first time, a chunk of an <IfModule> declaration was missing, so it looked like this:
# END Newfold Browser Cache
odule mod_rewrite.c>
RewriteEngine On
[... etc.]
</IfModule>Notice that the <IfModule> is chopped off at the front. This happened while I was editing the WordPress Settings –> Advanced “Page Setup” tab. I had entered a “Cart Page”, saved it, then did it a second time, this time leaving the “Cart page” blank. Boom – web site dead.
Today, there was an extra newline inserted into what should have been a comment, so it looked like this:
# END Newfold Browser Cache
WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.Obviously the word “WordPress” isn’t a valid .htaccess command. This happened while I was editing settings in the WooCommerce PayPal plugin (sorry, can’t give you the exact sequence).
When .htaccess is corrupted, the nginx server won’t start at all, so not only is my web site down, but the wp-admin doesn’t work either. It’s a major bit of work to fix. I have to ssh to the web site, look through the error logs, and edit the .htaccess file by hand to get the web site back online.
WordPress is supposed to be for non-technical users. This bug (or bugs) is serious.
The topic ‘.htaccess corrupted, entire web site crashes — twice’ is closed to new replies.