I was having a similar problem recently. It turned out it was due to a code injection in the /wp-includes/nav-menus.php file. There was a Base64 malware code injected that was causing my .htacess file to chmod itself to 444. Something called some kind of darkleech malware. See this link for more, maybe it’s what’s happening in your case as well: https://blog.sucuri.net/2015/03/pseudo-darkleech-server-root-infection.html
Related Posts:
- Giving WordPress its own subdirectory – nginx
- Corrupt .htaccess file
- Case insensitive header params for API request
- Can’t access WP site over WiFi network
- Subfolder install not working
- adding rewrite rules in .htaccess
- Static raw HTML page
- Plugin to edit htaccess file
- .htaccess file redirecting to parent directory
- Serve apache 404 for missing assets rather then wp 404 template WP_Rewrites
- Permalinks not working on second wordpress installed in a subdirect
- Rewrite rule not working
- Change wp-content without changing the name of the folder
- Using “wordpress_logged_in” to restrict direct access to uploads folder in 2021
- Temporary .htaccess blocking is disabling WP Crons from running?
- How to restrict access to wp-content, wp-includes and all sub-folders
- .htaccess redirects disappeared after re-saving permalinks
- Is it possible to dynamically redirect URL using htaccess?
- Which WordPress scripts need to be executable for a fresh installation?
- Keep getting 401 error from WordPress on AWS Lightsail
- Setup Permanent 301 Redirects after moving to Https [closed]
- Force www to non-www on a subdomain in WordPress?
- WordPress multilingual website domain and folders
- Attach to wp-login.php and xmlrpc.php
- WP site URL changed to have HTTPS but still homepage does not redirect
- need a help for modify .htaccess rule [closed]
- XMLRPC filtering through htaccess not working
- Cache policy not updated according to PageSpeed
- .htaccess ‘down for maitenance’ and WordPress
- What’s the opposite of required valid user in .htaccess authentication
- Which is better: 301 Redirect in my .htaccess file or a plugin like Redirection?
- How can i redirect one url to another url using .htaccess or add_rewrite_rule
- When is it necessary to have Header unset Vary in .htaccess
- Redirect http to https does not work on subdir where another instance of WordPress installed
- Fixing custom 404 pages broken by WordPress in a subdirectory
- redirect the homepage using .htaccess outside of WordPress
- I can’t access the admin panel links as I click it shows 403 error
- Https Redirect infinite loop in Mobile browsers
- 403 error on admin login page
- How to hide login form if basic authentication fails?
- Redirect an old link to new site homepage [closed]
- .htaccess rewriting old RSS feed URL to WordPress feed URL
- How can I set Cache TTL for woff and woff2 font files with htaccess?
- WordPress – Promoting A Dev Build In A Subdirectory To Production / Root Directory
- How can I fix the redirect chain after implementing ssl on wordpress?
- How do I configure wordpress structure for development using git and composer
- .htaccess RewriteRule always overwritten – how to prevent?
- How to create a redirect in the .htaccess file, with 2 exceptions
- Redirect old domain with query paramaters
- What might be removing my redirects from my htaccess?
- My Homepage Suddenly Disappeared and I Can’t Get It Back
- How to turn this .htaccess rule into a dynamic rule with add_rewrite_rule, et al?
- WordPress .htaccess to consider blog as directory
- Disable directory browsing of uploads folder
- Local PC cache stays filled with old WordPress Site data
- Password protect directory but not files
- How to have a custom URI path for specific page template
- WordPress JSON API restrict to specific domain
- Where to put W3 Total Cache rewrite rules in .htaccess? [closed]
- fix 302 redirection error on https
- main-domain of wordpress keep redirecting to subdomain
- How to deny access to a particular wordpress site url
- Rewrite Rules not redirecting rewrite
- How do i allow access to a single file in my root directory? [closed]
- Rewrite URL in address bar for a specific page [closed]
- Home links redirects to old site
- Selectively Disabling PHP via .htaccess in Root Directory
- What’s the best way to manage a lot of 301 redirects in WordPress?
- Shared hosting, multiple sites, can’t log in to WP due to .htaccess redirection
- What causes 404 errors that forces you to rebuild a .htaccess file?
- Configure .htaccess to have a WordPress single site installation with all subdomains pointing to the same pages?
- How to set up MS Exchange Autodiscover alongside WordPress
- Rewriting subfolders to specific parent folder in WordPress
- Azure WordPress deny access to xmlrpc
- Xampp is not loading media
- PHP application in sub directory keeps redirecting to main site
- domain redirection is not working from old to new
- Deny,Allow on .htaccess isn’t working
- execute cron jobs when .htaccess login protected?
- Redirect WordPress site to a landing (construction) page using htaccess, with access to /wp-admin and /invoice
- Using htaccess to prevent spam through wp-comments-post.php
- Install second wordpress in root subfolder, Error 404
- change URIs of migrated site
- Remove subdirectory from links
- modifying htaccess for localhost with a custom port
- htaccess- to hide subdirectory slug only from the post
- .htaccess redirects for posts in new directory and new domain
- Steps for WordPress over SSL
- Fixing Access-Control-Allow-Origin (CORS origin) for multiple subdomains
- domain.in/wp-admin give the result to 403 Access to this resource on the server is denied!
- insert_with_markers() WordPress & htaccess help
- WordPress login bug. Need an emergency solution
- .htaccess and virtual host configuration for WP in its own directory
- 403 forbidden due to .htaccess?
- Cannot find webarh/malware redirect infection that only shows on Chrome
- Where is the htaccess in wordpress.com hosting?
- Debug errors for “Destination directory for file streaming does not exist or is not writable”
- WordPress Media Library rendering blank image tiles
- Redirect loops in Bing holding my sites back
- Permalinks not working on debian with OVH