rewrite redirect-with-params