modifying how rewrite rules work