Replace all hardcoded hostnames with relative URLs