Title: Plugin conflicts with SSL
Last modified: August 30, 2016

---

# Plugin conflicts with SSL

 *  Resolved [Ofir Beigel](https://wordpress.org/support/users/ofirbeigel/)
 * (@ofirbeigel)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/plugin-conflicts-with-ssl/)
 * hey Frank, thanks again for this superb plugin.
 * I have an issue – I just implemented and SLL certificate on my site and the auto
   optimize plugin messes up the CSS if it’s enabled.
 * [This is my site](http://99bitcoins.com). Currently the plugin is inactive. If
   you want for me to create a user for you to look inside the WP-Admin just let
   me know.
 * Thanks again.
 * [https://wordpress.org/plugins/autoptimize/](https://wordpress.org/plugins/autoptimize/)

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/plugin-conflicts-with-ssl/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-conflicts-with-ssl/page/2/?output_format=md)

 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/plugin-conflicts-with-ssl/#post-6259432)
 * how did you implement SSL Ofir, does wordpress know it’s in https (cfr. the [wordpress’ is_ssl-function](https://codex.wordpress.org/Function_Reference/is_ssl))?
 * if yes, AO should put the optimized files on HTTPS as well. if not, you could
   fill in the “cdn root url” as “[https://99bitcoins.com&#8221](https://99bitcoins.com&#8221);,
   which will force the URL to https even if WP thinks it’s in HTTP.
 * hope this helps,
    frank
 *  Thread Starter [Ofir Beigel](https://wordpress.org/support/users/ofirbeigel/)
 * (@ofirbeigel)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/plugin-conflicts-with-ssl/#post-6259505)
 * Hey Frank. I think WordPress knows it’s in https. This is from my functions.php:
 *     ```
       function is_ssl() {
       	if ( isset($_SERVER['HTTPS']) ) {
       		if ( 'on' == strtolower($_SERVER['HTTPS']) )
       			return true;
       		if ( '1' == $_SERVER['HTTPS'] )
       			return true;
       	} elseif ( isset($_SERVER['SERVER_PORT']) && ( '443' == $_SERVER['SERVER_PORT'] ) ) {
       		return true;
       	}
       	return false;
       }
       ```
   
 * Also, I’m already using a CDN, but even when I change the CDN to [https://99bitcoins.com](https://99bitcoins.com)
   the CSS is still messed up.
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/plugin-conflicts-with-ssl/#post-6259518)
 * OK, then can you describe what is messed up? Is the entire page unstyled, or 
   is it partly unstyled? Do you see any errors in the browser’s console? Can you
   enable CSS optimization briefly for me to have a look?
 * frank
 *  Thread Starter [Ofir Beigel](https://wordpress.org/support/users/ofirbeigel/)
 * (@ofirbeigel)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/plugin-conflicts-with-ssl/#post-6259520)
 * All the CSS seems to be broken. I have enabled it for now so you can take a look
   please let me know once you’ve finished so I can revert the site back to normal.
   
   Thanks.
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/plugin-conflicts-with-ssl/#post-6259522)
 * _something_ is rewriting the URL’s to a HTTP CDN-url, e.g. [http://2u5tln3jelbhvk43s2ar7hi1.wpengine.netdna-cdn.com/wp-content/cache/autoptimize/css/autoptimize_f92621940739779d18fada7afb4afc36.css](http://2u5tln3jelbhvk43s2ar7hi1.wpengine.netdna-cdn.com/wp-content/cache/autoptimize/css/autoptimize_f92621940739779d18fada7afb4afc36.css)
 * do you have a CDN-plugin that is intervening, or do you have a CDN-setting in
   AO?
 * frank
 *  Thread Starter [Ofir Beigel](https://wordpress.org/support/users/ofirbeigel/)
 * (@ofirbeigel)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/plugin-conflicts-with-ssl/#post-6259524)
 * I have a CDN setting in AO since I’m hosted on WPE and it has a CDN included.
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/plugin-conflicts-with-ssl/#post-6259525)
 * OK, can you change the setting to HTTPS? 🙂
 *  Thread Starter [Ofir Beigel](https://wordpress.org/support/users/ofirbeigel/)
 * (@ofirbeigel)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/plugin-conflicts-with-ssl/#post-6259526)
 * If you mean to change it in AO settings then I just did but the layout still 
   come out messed up. Is there any place else I need to change this ?
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/plugin-conflicts-with-ssl/#post-6259527)
 * regarding AO: what is the “CDN base URL” you entered in AO?
 * regarding other places: it’s entirely possible you have other plugins that rewrite
   URL’s to a CDN, but that I can’t know, can I? 😉
 * frank
 *  Thread Starter [Ofir Beigel](https://wordpress.org/support/users/ofirbeigel/)
 * (@ofirbeigel)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/plugin-conflicts-with-ssl/#post-6259528)
 * [https://2u5tln3jelbhvk43s2ar7hi1.wpengine.netdna-cdn.com/](https://2u5tln3jelbhvk43s2ar7hi1.wpengine.netdna-cdn.com/)
 * OK thanks for your help, I’ll try to check this from the server side as well.
   Perhaps something in WPEngine needs to be configured.
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/plugin-conflicts-with-ssl/#post-6259529)
 * had a look, my browser tells me the problem now is
 * > 2u5tln3jelbhvk43s2ar7hi1.wpengine.netdna-cdn.com uses an invalid security certificate.
   > The certificate is only valid for the following names: *.netdna-ssl.com, netdna-
   > ssl.com
 * so either just remove the CDN-setting or log a ticket at WPEngine for this, AO
   can’t help you rectify this I’m afraid.
 * frank
 *  Thread Starter [Ofir Beigel](https://wordpress.org/support/users/ofirbeigel/)
 * (@ofirbeigel)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/plugin-conflicts-with-ssl/#post-6259530)
 * Will do, thanks so much for your help!
 *  Thread Starter [Ofir Beigel](https://wordpress.org/support/users/ofirbeigel/)
 * (@ofirbeigel)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/plugin-conflicts-with-ssl/#post-6259581)
 * Hello again frank.
    I’ve set up everything on the server side and the CSS is 
   rendered correctly. However when the plugin is active I get an https error “this
   page includes other resources which are not secure”.
 * When the plugin is disabled everything works fine – any idea why this is happening?
 *  Plugin Author [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * (@futtta)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/plugin-conflicts-with-ssl/#post-6259584)
 * Can’t tell really, as AO isn’t currently activated?
 * frank
 *  Thread Starter [Ofir Beigel](https://wordpress.org/support/users/ofirbeigel/)
 * (@ofirbeigel)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/plugin-conflicts-with-ssl/#post-6259648)
 * Hey Frank. Just activated AO again, any chance you can take a look ?
    The https
   is broken only when the plugin is activated.

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/topic/plugin-conflicts-with-ssl/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-conflicts-with-ssl/page/2/?output_format=md)

The topic ‘Plugin conflicts with SSL’ 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

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

 * 17 replies
 * 2 participants
 * Last reply from: [Frank Goossens](https://wordpress.org/support/users/futtta/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/plugin-conflicts-with-ssl/page/2/#post-6259650)
 * Status: resolved