added environment variable to specify dev env type, rewrite rules moved from htaccess