Updating redirect to rewrite