Fix rewrite url with absolute path