Added redirect to https for self-signed certs (strict transport sec. is ignored there).