index.php and .htaccess revert to hacked version
-
My site has some sort of malware that keeps causing the index.php and .htaccess files in the root directory to revert to hacked versions with the permission set to 444, making the front end of the site inaccessible (it just shows a blank white screen, but I can access the dashboard no problem. All of my pages are intact as well when I look at them through the dashboard.). I’ve tried reinstalling WordPress, deleting the files, replacing the files, renaming the files, scanning with Wordfence, changing database password, changing FTP password, but nothing is helping.
Edit: this is the .htaccess file it reverts to. I’m not 100% sure but I think this might be what’s making index.php revert to the hacked code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
DirectoryIndex index.php
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>- This topic was modified 3 months, 3 weeks ago by . Reason: removed redundant url
- This topic was modified 3 months, 3 weeks ago by .
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.