Replace urls of resources