Title: BWP-Minify breaks CSS
Last modified: August 31, 2016

---

# BWP-Minify breaks CSS

 *  Resolved [pcgs51](https://wordpress.org/support/users/pcgs51/)
 * (@pcgs51)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/bwp-minify-breaks-css/)
 * The site in question is hosted @ WPEngine with a Premium (dedicated server) account
   with MaxCDN activated.
    Theme: Genesis with the Epik child theme.
 * In an attempt to optimize I copied the live site to a new WP install at WPEngine(
   not in staging) to make edits, test etc. My test site is here: [http://spencerinst3.wpengine.com](http://spencerinst3.wpengine.com)
 * However when BWP-Minify is activated PageSpeed does not see the stylesheets for
   mobile or desktop views. The previews of the site show text only and no styling
   at all. But the PageSpeed score nicely improves but I have no stylesheets. Please
   see screenshot links below.
 * In addition, PageSpeed does not recognize the site as mobile friendly— which 
   it is. I see a comment on the Mobile friendly test saying that the URL is being
   blocked by robots.txt. Puzzled by that.
 * [Image of PageSpeed Mobile results](http://grab.by/NqCI)
    [Image of PageSpeed Desktop results](http://grab.by/NqCO)
 * When I installed BWP Minify I pretty much only use default settings. However,
   I did set up the CDN.
 * I have been flushing the cache in the plugin and on the server and CDN but nothing
   helps.
 * A couple of days ago I installed BWP Minify on another site for the same client
   in their WPEngine account + MaxCDN and it works fine. But this site isn’t working
   properly.
 * I have a few more sites to optimize. All with similar setups. I hope you can 
   help. Thanks.
 * [https://wordpress.org/plugins/bwp-minify/](https://wordpress.org/plugins/bwp-minify/)

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

 *  Plugin Author [Khang Minh](https://wordpress.org/support/users/oddoneout/)
 * (@oddoneout)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/bwp-minify-breaks-css/#post-6959195)
 * I guess that you’re enabling the “friendly minify url” feature, and that feature
   is known to cause issue on WPEngine’s host. I’m working with WPEngine to resolve
   this.
 *  Thread Starter [pcgs51](https://wordpress.org/support/users/pcgs51/)
 * (@pcgs51)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/bwp-minify-breaks-css/#post-6959238)
 * Thank you so much Khang for your speedy reply!
 * Unfortunately I’ve tried it on and off. Currently the “friendly minify url” is
   currently set to without.
 * I called WPEngine last night and they could find nothing on their servers or 
   in the MaxCDN account.
 *  Plugin Author [Khang Minh](https://wordpress.org/support/users/oddoneout/)
 * (@oddoneout)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/bwp-minify-breaks-css/#post-6959255)
 * Weird, I’ve just tried running your site ([http://spencerinst3.wpengine.com/](http://spencerinst3.wpengine.com/))
   through pagespeed and it’s looking good to me, no missing stylesheets, and mobile-
   optimized. Your site is lightning fast as well.
 *  Thread Starter [pcgs51](https://wordpress.org/support/users/pcgs51/)
 * (@pcgs51)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/bwp-minify-breaks-css/#post-6959264)
 * The site itself works fine but the PageSpeed test displays the issues I reported.
   If Google thinks the style sheets are broken– we fail the mobile friendly test
   and will be penalized for poor SEO.
 * Sadly it still isn’t working for me with FF, Chrome, or iOS. WPEngine support
   sees my same issue too. 🙁
 *  Thread Starter [pcgs51](https://wordpress.org/support/users/pcgs51/)
 * (@pcgs51)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/bwp-minify-breaks-css/#post-6959269)
 * Last night it was suggested that I apply a proper domain to the account instead
   of using only a temporary WPE URL.
 * I tried that just now but it didn’t help. Not sure why your tests look fine. 
   Perhaps it has to do with being in another timezone?
 *  Thread Starter [pcgs51](https://wordpress.org/support/users/pcgs51/)
 * (@pcgs51)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/bwp-minify-breaks-css/#post-6959271)
 * I have great news!
 * This may also help anyone else out there hosted with WPEngine and using Better
   WordPress Minify. I made yet one more call and Zach at WPEngine found the issue.
 * If you run into the same issue that I first reported contact WPEngine to set 
   the “**Redirect Bots**” to OFF.
 * Apparently this is a setting that customers do not have access to but they can
   certainly change it for you.
 * Thanks for your plugin and your help Khang!
 *  Plugin Author [Khang Minh](https://wordpress.org/support/users/oddoneout/)
 * (@oddoneout)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/bwp-minify-breaks-css/#post-6959288)
 * That seems to be a different issue, but I’m glad that you got it working!
 * Will write a new FAQ entry about this, thanks.
 *  [luisten](https://wordpress.org/support/users/luisten/)
 * (@luisten)
 * [10 years ago](https://wordpress.org/support/topic/bwp-minify-breaks-css/#post-6959459)
 * Hi Khang,
 * I’ve spent hours looking at this same issue and Priscilla’s solution is actually
   the right one. The problem is that when WPEngine detects that a bot is trying
   to access the combined CSS assets, it redirects to the homepage. This means that
   when the Google crawler tries to read the minified CSS the server returns the
   full HTML for the homepage and therefore everything looks messed up.
 * By disabling Redirect Bots the Google crawler is able to successfully reach and
   read the file.

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

The topic ‘BWP-Minify breaks CSS’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bwp-minify.svg)
 * [Better WordPress Minify](https://wordpress.org/plugins/bwp-minify/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bwp-minify/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bwp-minify/)
 * [Active Topics](https://wordpress.org/support/plugin/bwp-minify/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bwp-minify/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bwp-minify/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [luisten](https://wordpress.org/support/users/luisten/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/bwp-minify-breaks-css/#post-6959459)
 * Status: resolved