If you want to guarantee that a link to an external asset (CSS, JavaScript, images etc.) will work, use a protocol-independent absolute path, which leaves out the http:
or https:
portion of the URL. For example:
<img src="//domain.com/img/logo.png"/>
The browser will then make the determination as to whether it should call the asset using SSL (https:
) or not (http:
).