if the $url scheme differs from $upload_url scheme, make them match