Title: Optimize HTML Code &#8211; Breaks SSL/HTTPS
Last modified: August 21, 2016

---

# Optimize HTML Code – Breaks SSL/HTTPS

 *  Resolved [dojwebmaster](https://wordpress.org/support/users/dojwebmaster/)
 * (@dojwebmaster)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/optimize-html-code-breaks-sslhttps/)
 * I can get the JS/CSS optimized with this plugin but when I enable Optimize HTML
   Code it breaks by SSL? And I get MIXED content warnings in Firebug for all my
   images?
 * What can I do? And thanks for the great plugin!!
 * [https://wordpress.org/plugins/autoptimize/](https://wordpress.org/plugins/autoptimize/)

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

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/optimize-html-code-breaks-sslhttps/#post-4756834)
 * do you have the “CDN” field filled in in Autoptimize? can you try without that
   one?
 *  Thread Starter [dojwebmaster](https://wordpress.org/support/users/dojwebmaster/)
 * (@dojwebmaster)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/optimize-html-code-breaks-sslhttps/#post-4757010)
 * Since we switched to HTTPS our CDN url is showing as our main URL – WPengine 
   must have masked it? Here is a path example to one of our images [https://dojmt.gov/wp-content/uploads/human-trafficking1-300×200.jpg](https://dojmt.gov/wp-content/uploads/human-trafficking1-300×200.jpg)
 * So I used [https://dojmt.gov/](https://dojmt.gov/) as the Base URL but it didn’t
   do anything and I tried it also without a Base URL and still breaks SSL.
 * Anyway it could be a host issue – WPengine is assigning us a static IP and then
   reforcing HTTPS hopefully that will help – I update this post as I progress –
   thanks!!
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/optimize-html-code-breaks-sslhttps/#post-4757020)
 * Thanks for the feedback.
 * As Autoptimize does not change image URL’s (except for background images as defined
   in CSS which can be rewritten to the CDN url configured in Autoptimize), this
   presumably is not a problem with AO (but possibly indeed with WPEngine).

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

The topic ‘Optimize HTML Code – Breaks SSL/HTTPS’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/optimize-html-code-breaks-sslhttps/#post-4757020)
 * Status: resolved