Hello — I recently noticed that for some reason all our blog posts (example) lost all their formatting and thumbnail images. We use Movable Type to host the blog and link to it from our webpage. Please let me know if you have any information on how this might be corrected.
Charlie Gorichanaz on October 25, 2013, 12:47 a.m. Reply
Hello,
It appears your style sheets and images are not loading because your site is being served over HTTPS, but the resources are linked in the code to full URLs that include
http
, nothttps
.The posts might have recently stopped working for two reasons I can imagine:
Your web server might have been recently reconfigured to force SSL, thereby creating a problem that didn’t exist before.
More probably, the web server might have been forcing SSL for some time, but it only recently became apparent because Firefox and other browsers recently began ignoring content by default that was not retrieved via HTTPS on a page with
https://
in the address bar. This is the default behavior in Firefox as of version 23, and you can read more about it on Threat Post or in the Mozilla Security Blog.To resolve this issue, you should modify your templates so any images, style sheets, scripts or other files are referenced by a protocol relative URL that begins with
//
instead ofhttp://
.For example, change this:
To this:
That should cause the CSS file to load over HTTPS. If your entire site is forcing HTTPS, and even if it is not entirely HTTPS, you could also just change all the
http://
tohttps://
, but the two slashes alone work fine in almost all cases and have the added benefit of not causing warnings when switching between SSL and standard unencrypted pages.For more information about templates, see Managing your blog’s templates.