Add htaccess template
Update index.php template
Update app/index.js & tests to reflect template changes