Add the rewrite rules to the right templates directory