remove host and port from url