modify rewrite rules for events;