add rewrite script master.php