Made a script to generate the htaccess file from settings