Background of the issue:
I am trying to prevent WPML from rewriting the htaccess file, which causes the website to go down. The original htaccess configuration is:
# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
# BEGIN WordPress
# Le direttive (linee) tra "BEGIN WordPress" e "END WordPress" sono
generate dinamicamente, e dovrebbero essere modificate solo tramite i filtri di WordPress.
# Ogni modifica alle direttive tra questi marcatori verrà sovrascritta.