htaccess gets truncated then causes internal server error
-
Twice now on two separate instances of WordPress (both current installs, both on Dreamhost) the htaccess file has grown too large and then, for some reason, is truncated, which causes the file to be incomplete, which in turn causes a 500 internal server error.
The solution is easy — replace htaccess with a known good one — but I want it not to happen again.
What happens is that the plugin just keeps writing to htaccess and never culls the addresses that it is blocking there. In the server that just had the problem, that behavior resulted in a large htaccess file — more than 18,000 lines and 728K in file size.
What htaccess could have is some sort of trimming option. Perhaps “remove unseen bad hosts older than X days” or “limit bad host list to X number of entries.”
- The topic ‘htaccess gets truncated then causes internal server error’ is closed to new replies.