Replace {hostname} with {baseUri}