Fix maintenance rewrite rules