Copy rewrite rule set functionality

Mantis: 0003135