added trailing slashes to rewrite rules