Update Rewrite.php