update php rewrite