Replace the resource URL.