fixed rewrite rules config for ci