Add a single function for writing htaccess