replace base_url with url