Title: Images break with https:// prefix
Last modified: August 31, 2016

---

# Images break with https:// prefix

 *  [jessicalarson831](https://wordpress.org/support/users/jessicalarson831/)
 * (@jessicalarson831)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/images-break-with-https-prefix/)
 * When my website or blog post is accessed with the https:// prefix, images will
   not display. When the prefix is left off or http:// is used, images show up just
   fine. I searched forums and found a solution (copied in below), but that solution
   now appears to be invalid as” Full URL path to files” is no longer an option.
   How can I fix this?
 * Here’s an example post:
 * Broken: [https://www.merriman.com/investing-101/should-your-home-be-considered-in-your-asset-allocation/](https://www.merriman.com/investing-101/should-your-home-be-considered-in-your-asset-allocation/)
 * Works: [http://www.merriman.com/investing-101/should-your-home-be-considered-in-your-asset-allocation/](http://www.merriman.com/investing-101/should-your-home-be-considered-in-your-asset-allocation/)
 * Settings > Media > Full URL path to files
 * and changed the URL so that it uses the domain for the SSL host. I then updated
   the HEADER_URL in my theme’s functions.php file. Finally, I used the Search and
   Replace plugin to safely update existing image URLs in the post_content and guid
   fields of the _posts table and the meta_value field of the _postmeta table.

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

 *  [wptit](https://wordpress.org/support/users/wptit/)
 * (@wptit)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/images-break-with-https-prefix/#post-7056480)
 * Use below code in wp-config file
 * define(‘FORCE_SSL_ADMIN’, true);
 *  Thread Starter [jessicalarson831](https://wordpress.org/support/users/jessicalarson831/)
 * (@jessicalarson831)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/images-break-with-https-prefix/#post-7056607)
 * I am not super familiar with editing the wp-config file, but I added that to 
   the end of it in notepad and saved, the image still is broken on https://
 *  Thread Starter [jessicalarson831](https://wordpress.org/support/users/jessicalarson831/)
 * (@jessicalarson831)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/images-break-with-https-prefix/#post-7056608)
 * I installed this plugin and it seems to work for now. [https://wordpress.org/plugins/wordpress-https/](https://wordpress.org/plugins/wordpress-https/)
 *  Thread Starter [jessicalarson831](https://wordpress.org/support/users/jessicalarson831/)
 * (@jessicalarson831)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/images-break-with-https-prefix/#post-7056618)
 * The plugin is not a fix. It does solve the image problem, but doesn’t allow any
   other post updates to stick. I have to deactivate the plugin, update my post,
   and then reactivate the plugin. Not exactly ideal. Any other ideas?
 *  [linux4me2](https://wordpress.org/support/users/linux4me2/)
 * (@linux4me2)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/images-break-with-https-prefix/#post-7056621)
 * Have you tried setting the WordPress Address and Site Address in Settings -> 
   General to HTTPS so that your entire site is served via HTTPS?
 * It’s a little slower than HTTP, but it may solve your problem until WordPress
   fixes the problems with FORCE_SSL_ADMIN that seem to have cropped up in 4.4.1
   and later.
 * If that works, you’ll need to test the links in your content and make sure they
   correctly link to the HTTPS protocol. If not, you may need to update them.
 * If you change the settings as above, you won’t need a plugin or the FORCE_SSL_ADMIN
   in wp-config.

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

The topic ‘Images break with https:// prefix’ is closed to new replies.

## Tags

 * [broken image](https://wordpress.org/support/topic-tag/broken-image/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [linux4me2](https://wordpress.org/support/users/linux4me2/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/images-break-with-https-prefix/#post-7056621)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
