Adding writeHtaccess function by diegoe