Follow the official installation steps here. https://codex.wordpress.org/Managing_Plugins#Installing_Plugins
This plugin prevent WordPress from rewriting htaccess or web.config to prevent unintended files changes