replace r->uri with r->unparsed_uri