corrected htaccess generation with template