Prefer HTTPS and shorter urls

..but only when possible.