I have a WordPress site (v5.2.3), and every now and again (possibly monthly) the
.htaccess files are over written with bad information.
This results in two problems - first the DB access details in
wp-config are changed to something don't work, and then the ability to access my post-link permalinks are lost as a result of information being lost from
After being overwritten, my
wp-config file is full of lines like this:
wp-config file has so many of these lines that it is about 800Kb in size.
The plugins I am using on my WordPress site are as follows:
- Akismet Anti-Spam [v4.0.1 by Automattic]
- Contact Form 7 [v4.9.2 by Takayuki Miyoshi]
- Duplicator [v1.2.3 by Snap Creek]
- Google Analytics for WordPress [v7.7.1 by MonsterInsights]
- Hello Dolly [v1.6 by Matt Mullenweg]
- Limit Login Attempts [v1.7.1 by Johan Eenfeldt]
- Logo Slider [v1.4.7 by EnigmaWeb]
- Recent Posts Widget Extended [v0.9.9.7 by Satrya]
- Squelch Tabs and Accordions Shortcodes [v0.4.1 by Matt Lowe]
- WordPress Importer [v0.6.3 by wordpressdotorg]
- Yoast SEO [v5.9.1 by Team Yoast]
Using my FTP program I have tried changing the permissions to the
.htaccess files so they cannot be written to - however my attempts to change these values have resulted in no changes. I am assuming I do not have the ability to change file permissions.
How do I stop these files from being over written?
Or how I can discover what is responsible for changing these files?