Fix rewrite check url