the replacement should be pointing to the cname instead of public_url.