.htaccess file mysteriously emptied of code
-
I was alerted to an issue today when a site returned 404 errors for all pages except the homepage. Troubleshooting led to the .htaccess file in the root, which was completely empty of code, and with a timestamp of last being edited at 05:30 today. The only plugin which writes to the file is Wordfence, and I added other security rules including the 5G Firewall some time back. I’ve checked the access logs and nothing is showing around that time, nor have any other site files been edited (Ninja Firewall has a file check feature). A scan with Securi site check and Wordfence comes up clean, and after restoring the .htaccess file from a backup everything is functioning as normal. However, this is a weird issue. Has anyone experienced this before, or have any suggestions on what could have caused it?
- The topic ‘.htaccess file mysteriously emptied of code’ is closed to new replies.