For those facing this issues simply create a new .htaccess file and add the following codes, it will prevent further auto modifications of your .htaccess files. for deeper explanation follow the reference stop auto htaccess wordpress modification
# PREVENT WP AUTO MODS
# @ https://m0n.co/08
<IfModule mod_ignore_wordpress.c>
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
</IfModule>
-
This reply was modified 3 years, 6 months ago by Stanliwise.
-
This reply was modified 3 years, 6 months ago by Stanliwise.