Leave external HTTPS elements as HTTPS as on HTTP pages.
Added checks for domain mapping.