Malware removal .htaccess file gets overwritten by some malicious code blocking php, py, exe files -- 2

Job ID: 35256609

Budget: ₹600 – ₹1,500 INR

Hi on my wordpress site on aws, having other php and other codes, the .htaccess file is denying files, and allowing few other files.
ubuntu +apache
Related categories: PHP Linux Web Security WordPress Ubuntu