Addressing the issue you’ve described involves a multi-step process that goes beyond a quick fix. Malware infections are often complex and can involve multiple layers of your website, including the core files, plugins, themes, and even the database. The fact that your site is redirecting suggests that malicious code has been injected, which could be located in various places, and tracking down every instance requires thorough investigation.
Firstly, we'll need to perform a comprehensive scan to identify all infected files. Simply removing the visible malware may not be sufficient, as remnants of malicious code can remain hidden in other areas, leading to future reinfections.
Next, we’ll need to clean the infected files and potentially replace compromised components with clean versions. Following the cleanup, it’s essential to harden the security of your site to prevent further attacks. This might include updating all software, configuring security plugins, fixing vulnerabilities, and implementing best practices like regular backups and stronger password policies.
Lastly, we’ll monitor your site post-cleanup to ensure the threat is fully eradicated. Given the nature of these infections, it's impossible to guarantee a one-time resolution without ongoing vigilance and security measures.
This process requires careful attention and time, but it’s crucial to ensure your site’s long-term safety and functionality.