fix root rewrite rule