Readd rewrite rules to satisfy security requirements