minor: fixing htaccess generation
minor: fixing redirect loop