Title: Problems with displaying images over https
Last modified: August 22, 2016

---

# Problems with displaying images over https

 *  Resolved [ayron](https://wordpress.org/support/users/ayron/)
 * (@ayron)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/problems-with-displaying-images-over-https/)
 * I marked the option:
    Always serve files over https (SSL)
 * When I send the picture, it does not appear.
    I checked the image url: [https://s3.amazonaws.com/mydomain/image-01.png](https://s3.amazonaws.com/mydomain/image-01.png)
 * When I change to:
 * [https://mydomain.s3.amazonaws.com/image-01.png](https://mydomain.s3.amazonaws.com/image-01.png)
 * it appears normally.
 * I can do that when I insert images in the description of the post / page, but
   when I set a highlighted image. I have no control over the url of the image that
   always shows as follows:
 * [https://s3.amazonaws.com/mydomain/image-xx.png](https://s3.amazonaws.com/mydomain/image-xx.png)
 * How to force the url so it appears as follows:
 * [https://mydomain.s3.amazonaws.com/image-xx.png](https://mydomain.s3.amazonaws.com/image-xx.png)
 * [https://wordpress.org/plugins/amazon-s3-and-cloudfront/](https://wordpress.org/plugins/amazon-s3-and-cloudfront/)

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

 *  Thread Starter [ayron](https://wordpress.org/support/users/ayron/)
 * (@ayron)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/problems-with-displaying-images-over-https/#post-5412051)
 * Sorry
    The correct mybucket and not mydomain.
 * [https://s3.amazonaws.com/mybucket/image-01.png](https://s3.amazonaws.com/mybucket/image-01.png)
 * Does not work. The featured image is not displayed. This is the default url of
   the plugin.
 * [https://mybucket.s3.amazonaws.com/image-01.png](https://mybucket.s3.amazonaws.com/image-01.png)(
   works). Changes made manually, but I can not edit the url of an image featured
 *  [LasseKartin](https://wordpress.org/support/users/lassekartin/)
 * (@lassekartin)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/problems-with-displaying-images-over-https/#post-5412178)
 * I had the same problem, and I believe the plugin works like this because S3’s
   SSL certificate can’t handle more than 2 levels of subdomains (So `https://mysite.
   s3.amazonaws.com` is okay but `https://mysite.com.s3.amazonaws.com` isn’t).
 * It’s slightly “hacky” but I solved it by setting **CloudFront Settings > Domain
   Name** to the `mysite.s3.amazonaws.com` (Where you would of course change _mysite_
   to match your bucket).
 *  Thread Starter [ayron](https://wordpress.org/support/users/ayron/)
 * (@ayron)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/problems-with-displaying-images-over-https/#post-5412185)
 * Hi, LasseKartin. Thank You.
    I solved based on the response in henriquemattos
   in
 * [https://wordpress.org/support/topic/bucket-u-are-attempting-to-access-must-be-addressed-using-the-specified-endpoint](https://wordpress.org/support/topic/bucket-u-are-attempting-to-access-must-be-addressed-using-the-specified-endpoint)
 * File: amazon-s3-and-cloudfront/classes/amazon-s3-and-cloudfront.php
    line: 336
 * Commented the original line and replaces the other as below.
 *  elseif ( is_ssl() || $this->get_setting( ‘force-ssl’ ) ) {
    /** $domain_bucket
   = ‘s3.amazonaws.com/’ . $s3object[‘bucket’];*/ $domain_bucket = $s3object[‘bucket’].‘.
   s3.amazonaws.com’;
 *  [turbotraffic](https://wordpress.org/support/users/turbotraffic/)
 * (@turbotraffic)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/problems-with-displaying-images-over-https/#post-5412273)
 * This has solved the same issue I had.
 * Thanks guys

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

The topic ‘Problems with displaying images over https’ is closed to new replies.

 * ![](https://ps.w.org/amazon-s3-and-cloudfront/assets/icon-256x256.jpg?rev=1809890)
 * [WP Offload Media Lite for Amazon S3, DigitalOcean Spaces, and Google Cloud Storage](https://wordpress.org/plugins/amazon-s3-and-cloudfront/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amazon-s3-and-cloudfront/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/)
 * [Active Topics](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/reviews/)

## Tags

 * [HTTPS](https://wordpress.org/support/topic-tag/https/)
 * [s3](https://wordpress.org/support/topic-tag/s3/)

 * 4 replies
 * 3 participants
 * Last reply from: [turbotraffic](https://wordpress.org/support/users/turbotraffic/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/problems-with-displaying-images-over-https/#post-5412273)
 * Status: resolved