Fixed redirect-rewrite