relativize and https-ify