tweaks to rewrite rules; removed trailing slash in config