dist.htaccess in code templates now has RewriteEngine On, closes #678
merge 5fbed4bd4c1b45131e91f0e45550e8312977035d