Truncated .htaccess
-
This has happened to me twice, once in a single-site installation and once in a multisite, both running WordFence and Falcon Engine. Both are on MediaTemple GS. I update my core and plugins regularly so the versions of WP and WordFence were probably the current ones at the time.
Details:
Starting August 20: Site https://www.theblockhouseschool.org, single-site installation running WordFence and Falcon Engine was giving a 500 error. Error_log showed:
[Fri Aug 22 12:25:02 2014] [alert] [client 72.10.62.12] /home/xxxxxx/domains/theblockhouseschool.org/html/.htaccess: Invalid command ‘RewriteRu’, perhaps misspelled or defined by a module not included in the server configuration
The .htaccess file had a fairly long list of banned IP addresses, which could only have been written there by WordFence. A RewriteRule near the end had been truncated. Easy enough to restore as I had a backup.
Sept. 11: Multisite setup on holmpage.ca with about 20 low-traffic sites. All the sites that I checked were down. Error log was giving a repeated error “Invalid command ‘Rew’, perhaps misspelled or defined by a module not included in the server configuration”. In this case, there wasn’t a long list of banned IPs. Same issue in .htaccess; a truncation in the middle of “RewriteRule”.
I restored the end of the .htaccess file and added a few lines starting with “#” at the end to mitigate future truncations, as per a suggestion I found in another support thread, and sites were back immediately.
I mentioned this in another thread and was asked to repost in a new thread with more details.
- The topic ‘Truncated .htaccess’ is closed to new replies.