Fixed the `RewriteRule` flags.