Adding rewrite rules.