Fix write_htaccess