Set rewrite rules to new path logic