Your site has likely been hacked. My site had the Darkleech infection, which injected some malicious code into wp-includes/nav-menu.php
, causing .htaccess to reset to 444 on any page load.
I’d recommend you install the Sucuri plugin and let it restore any files that have been corrupted. Assuming your site was hacked, use their Post-Hack tab to reset plugins, passwords, and keys. Also check to make sure another admin user wasn’t created. Use their Hardening tab to secure as much as you can. You could also install Wordfence for more security.
If you make adjustments and the problem keeps coming back, you likely have a root-level breach on your server, and then you have to work with your hosting provider to try to clean out the infection.
Related Posts:
- Standard permissions for wordpress; Plugin installation asks for FTP credentials
- 403 Forbidden – You don’t have permission to access /wp-admin/admin-ajax.php on this server
- Error Message from W3 Total Cache when .htaccess Rules Cannot Be Modified? [closed]
- Prevent WordPress installing plugins and themes via Admin
- Linux Permissions and Ownership for WordPress
- WordPress FTP/media directory permissions problem?
- to perform the requested action wordpress needs to access your web server. please enter your ftp
- How can I stop WordPress from prompting me to enter FTP information when doing updates?
- wordpress on localhost lamp doesn’t let me install plugins
- Prompted for FTP details even with FS_DIRECT set to true
- Is there a way (plugin?) to restrict a user to being able to edit just one page?
- Security and .htaccess
- Can’t install new plugins because of the error “Could not create directory”
- Cannot install plugins even though www-data has write permissions
- Why does WordPress require a ftp server to be running on the webserver to transfer plugins?
- WP Config for FTP credentials
- How does WordPress update plugins, without running into permissions issues?
- Plugins won’t auto-update on IIS
- Add .html extension to custom post type taxonomies
- Leverage browser caching not working after updating .htaccess
- Can I ignore caching of a plugin in W3 Total Cache? [closed]
- Why would WordPress request FTP information when it can write to the file server?
- Upgrading WordPress 4.0 asks for FTP password
- How to install WordPress Multisite with different domains under the same subdirectory?
- WordPress roles – Protect administrator role
- htaccess and wordpress config files are regularly over written
- Could not create directory
- Creating Custom Roles for use on a WordPress Multi-site Instance?
- Moving WordPress from host without FTP?
- Can’t use the built-in wordpress install/upgrade plugin feature [closed]
- Plugin Expires Headers – W3 Total Cache [closed]
- How create a role with admin capability less 1 or 2?
- 500 Internal Server Error when updating htaccess
- Write to / remove from default .htaccess file from plugin?
- Restored WordPress on new Server – Can’t auto-update plugins
- Changed permalink structure. Need help with redirecting old posts
- Landing Page Redirect Chain | http->https->https www
- Possible htaccess configuration issue for HTTPS websites by WP Fastest Cache plugin? [closed]
- W3 Total cache “empty all caches” and no stylesheets render [closed]
- Getting WPTouch and W3 Total Cache to Work Together [closed]
- Install (enable) plugins on multisite, on localhost
- admin-ajax.php warning max input vars exceeded on layered pop plugins [closed]
- Reoccurring 404 Errors on all subpages
- Problem with updating a plugin
- Lock access to plugin options
- Is W3 Total Cache supposed to delete the local files after they are uploaded to CDN? [closed]
- plugin links not working [closed]
- Can’t Install Standard Plugins on a Local MAMP installation
- Redirect to another page using contact form 7? [closed]
- Why is the ‘Gutenberg’ Plugin generating an ‘Inconsistent File Permissions’ error when other Plugins, with the same permissions, do not?
- Custom url rewriting
- What are the correct permissions so WP doesn’t ask for FTP credentials if installing plugin?
- WordPress won’t allow for updates to plugins or WordPress Core
- To perform the requested action, WordPress needs to access your web > server
- WordPress permissions error with admin account
- WordPress unable to write files in the server
- WordPress rewrite rules not working
- Do rewrites added with add_rewrite_rule() persist after plugin deletion?
- Sociable buttons displaying seemingly at random [closed]
- How to hide plugin options for editors via functions.php
- What archive plugin works with W3 total cache? [closed]
- In a local wordpress installation, when I install a plugin it only offers me installation via FTP
- Memcaching recurring SQL Queries
- Add a parameter at the end of the url and prettify
- www redirects to another directory in wordpress
- Content-Security-Policy implementation with WordPress W3Total Cache plugin installed
- See which user role / capability is needed to use a plugin
- My wp database has been hacked
- How can I disable W3 Total Cache Image Lazy Load for Specific Post Type?
- FTP access to NAS drive files/folders from WordPress site
- woocommerce with external ftp site
- How to make a plugin api route have permission?
- Permission Issues regarding Plugin updates & FTP transfers
- htaccess question and plugins.php
- Help Code Review – I need to write on .htaccess file from theme’s function.php
- WordPress Plugin Install / Update Problem
- WP-admin plugin installation via FTP silently fails on shared hosting
- Wordress admin page is fetching error You do not have sufficient permissions to access this page.
- WordPress Theme/Plugin Install (about FTP Connection)
- Admin page and admin menu. Permissions plugin
- SSH vs WordPress
- Site not displaying correctly when re-directing from root to sub-directory
- Plugins upload to wordpress in wampserver via filezilla
- W3 Total Cache Can’t Really Detect Things
- How To Rewrite WordPress Pages URL Only?
- using .htaccess only for wordpress security no plugins
- Apache rewrite rules and wordpress problem
- Problems with installing and deleting plugins
- Plugin (smart archives reloaded) crashed site / no access on admin panel
- Plugin not installing properly, functions being redeclared
- incorrect path of plugin dir on network
- Images not showing and plugins not installing on wordpress server move
- Problem with permissions in wp-content/plugins
- Making plugin to use different table prefix cause permission problem
- W3 Total Cache and IIS7 not doing much [closed]
- My WP site and password was hacked, what to do? [closed]
- ERROR: Cookies are blocked due to unexpected output – no access to FTP
- Browser Cache causes ‘Orderby=rand’ to return the same posts
- How to rewrite URL using .htaccess in WordPress Plugin
- Rewrite Rule in htaccess convert query string into slashes