config: make the leading /r/ prefix optional on https?: URLs