version restoration add rewrite rules