Moved htaccess to template