I’ve a WordPress website which 2 or 3 instances per week rewrites the index.php and .htaccess recordsdata. After it occurs the location goes clean, cannot open /wp-admin or the rest for that matter. Every time I’ve to interchange the index.php and .htaccess recordsdata with the originals to tug the location again.
It is a fragment of the index.php after WordPress modifies it:
and that is the modified .htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^(index|wp-admin|wp-include|wp-comment|wp-loader|wp-corn-sample|wp-logln|output|about|admin|wp-ver).php$ - [L]
RewriteRule . index.php [L]
</IfModule>
I attempted eradicating write privilege from these recordsdata, but they maintain being overwritten.
I attempted disabling plugins, however it nonetheless occurs.
Can a eliminated plugin nonetheless have an effect on the location?
I am utilizing a theme known as Avada.
What might be inflicting this downside?
Any assist can be vastly appreciated.