add url_rewrite check with url function