dist.htaccess in code templates now has RewriteEngine On, closes #602
merge d39954591490411b45c9ed7ce33679a6cc14a0df