When serving a Pressbooks site behind https scaled images get served from http

20 views
Skip to first unread message

Bill Fitzgerald

unread,
Jun 10, 2014, 6:12:51 PM6/10/14
to press...@googlegroups.com
We have a site that we are running behind https - this is the entire site, not just the admin area.

When images are uploaded into the media gallery (stock wp functionality) the images get served from https

However, when an image is uploaded as the book cover, the scaled image gets displayed from http -

To see this issue, on a site that is served from behind https:

1. Upload a cover image for the book
2. Go to the title page
3. Right click on the image and select "Copy Image Location" - the image location is at http

We have already updated the .htaccess to redirect any http requests to https. We have also set the WP_HOME and WP_SITEURL values to https://sitename.com in wp-config.php

Is this an issue related to pressbooks/wp and how it serves scaled images, or an issue related to server setup around https ?

Thanks for any pointers on this.

cutproductions

unread,
Jun 12, 2014, 7:48:42 AM6/12/14
to press...@googlegroups.com
Hi Bill, I use this plug-in. Seems to be working so far, but still testing, it doesn't affect links or downloads you may have on your site or books.

Regards

cutproductions

unread,
Jun 12, 2014, 7:51:35 AM6/12/14
to press...@googlegroups.com
Forgot to mention you still have to set your image to, Link URL None.

Bill Fitzgerald

unread,
Jun 13, 2014, 6:29:00 PM6/13/14
to press...@googlegroups.com
Hello,

Thank you for the response, but your feedback has nothing to do with the problem I'm experiencing. The plugin you linked to appears to prevent content from being downloaded - this is not related to what I am asking about.

The issue that I am experiencing is that thumbnail cover images for books do not get served from behind https on site runnings behind https. As a result, end users are presented with the scary "mixed content" message.

Thank in advance to anyone who can help with this.

Bill Fitzgerald

unread,
Jun 20, 2014, 12:54:17 PM6/20/14
to press...@googlegroups.com
Okay - just wanted to circle back on this and document what we did to address this issue, in case anyone else has it.

In addition to adjusting the .htaccess file and the wp-config.php file as noted in the original post, we also adjusted the Siteurl and Home values in the site settings. These need to be set individually, for each site. This is clumsy; I'm assuming that there is  a way of automating this that I don't know about (yet) - if anyone has more info on this, I'd love to see it.

But in any case, these changes took care of the issue.
Reply all
Reply to author
Forward
0 new messages