Replacing localhost URIs