Title: Images load using HTTP instead of HTTPS
Last modified: August 21, 2016

---

# Images load using HTTP instead of HTTPS

 *  Resolved [loudnotes](https://wordpress.org/support/users/loudnotes/)
 * (@loudnotes)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/images-load-using-http-instead-of-https/)
 * My site uses HTTPS on all pages, but when GAE is enabled the source of all images
   is of the form `src="http://lh6.ggpht.com/..."`
 * This leads to security warnings and the following error in my Chrome console:
   The page at ‘[https://MYSITE.appspot.com/&#8217](https://MYSITE.appspot.com/&#8217);
   was loaded over HTTPS, but displayed insecure content from ‘[http://lh6.ggpht.com/…&#8217](http://lh6.ggpht.com/…&#8217);:
   this content should also be loaded over HTTPS.
 * When GAE plugin is disabled, my images are all of the form `src=https://storage.
   googleapis.com/MYSITECLOUDBUCKET/...`
 * Is there any way to force the GAE plugin to use HTTPS and/or use the latter URL
   convention instead of the ggpht.com one?
 * [http://wordpress.org/plugins/google-app-engine/](http://wordpress.org/plugins/google-app-engine/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [loudnotes](https://wordpress.org/support/users/loudnotes/)
 * (@loudnotes)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/images-load-using-http-instead-of-https/#post-4561796)
 * Relatedly, is there a way to serve static files (such as a PDF) over HTTPS rather
   than HTTP?
 *  Plugin Author [slangley](https://wordpress.org/support/users/slangley/)
 * (@slangley)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/images-load-using-http-instead-of-https/#post-4561848)
 * We could add a check box in the plugin setup to serve images over HTTPS.
 * If you want to fix (aka hack) this in yourself it’s a one line change.
 * Change [this](https://github.com/GoogleCloudPlatform/appengine-wordpress-plugin/blob/master/modules/uploads.php#L362)
   line from
 * `$baseurl = CloudStorageTools::getImageServingUrl($file);`
    to
 * `$baseurl = CloudStorageTools::getImageServingUrl($file, ['secure_url' => true]);`
 *  Thread Starter [loudnotes](https://wordpress.org/support/users/loudnotes/)
 * (@loudnotes)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/images-load-using-http-instead-of-https/#post-4561854)
 * Thanks Stuart – works!
 *  [perqa](https://wordpress.org/support/users/perqa/)
 * (@perqa)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/images-load-using-http-instead-of-https/#post-4561922)
 * I have a similar problem: the plugin generates http URLs, but they are also invalid.
   The solution above did not help, neither for the https nor the validity.
 * Example URL: [http://lh4.ggpht.com/uDWdZWCSAQ1eJmix54cnCMd-X4KhdG7GPADYsHS_qOzwIgHjpiFQ3TH5xjXL4IC9Yit_qxkPjzFg0v5DpP6W5O_4KUHddLE=s99999-c](http://lh4.ggpht.com/uDWdZWCSAQ1eJmix54cnCMd-X4KhdG7GPADYsHS_qOzwIgHjpiFQ3TH5xjXL4IC9Yit_qxkPjzFg0v5DpP6W5O_4KUHddLE=s99999-c)
 *  [Mickywok](https://wordpress.org/support/users/mickywok/)
 * (@mickywok)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/images-load-using-http-instead-of-https/#post-4561945)
 * Similar problem for me as well – the site is loaded over https but displaying
   Insecure content from http URLs. Tried the fix above but no success.
 * Any other solutions out there?
 *  [Mickywok](https://wordpress.org/support/users/mickywok/)
 * (@mickywok)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/images-load-using-http-instead-of-https/#post-4561946)
 * Solved my issue, I think…
    Did the fix mentioned above, manually amended a few
   URLs from http to https, then re-uploaded some attachment images that were displaying
   over http and everything now seems to be fine (ie. all loaded over https).

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Images load using HTTP instead of HTTPS’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/google-app-engine_e8c9ab.svg)
 * [Google App Engine for WordPress](https://wordpress.org/plugins/google-app-engine/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-app-engine/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-app-engine/)
 * [Active Topics](https://wordpress.org/support/plugin/google-app-engine/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-app-engine/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-app-engine/reviews/)

## Tags

 * [Cloud storage](https://wordpress.org/support/topic-tag/cloud-storage/)
 * [gae](https://wordpress.org/support/topic-tag/gae/)
 * [HTTPS](https://wordpress.org/support/topic-tag/https/)
 * [images](https://wordpress.org/support/topic-tag/images/)
 * [img](https://wordpress.org/support/topic-tag/img/)

 * 6 replies
 * 4 participants
 * Last reply from: [Mickywok](https://wordpress.org/support/users/mickywok/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/images-load-using-http-instead-of-https/#post-4561946)
 * Status: resolved