Title: Site crashed, loading only html
Last modified: September 24, 2020

---

# Site crashed, loading only html

 *  Resolved [bobjones](https://wordpress.org/support/users/bobjones/)
 * (@bobjones)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/site-crashed-loading-only-html/)
 * My site recently crashed and when restored to functioning status via backups,
   showed only html and no css.
 * I disabled and restored plugins one by one until I realized the culprit was Autoptimize.
 * Everything had worked fine since I first installed the plugin about two months
   ago, using recommended settings, to improve site speed.
 * Any suggestions on which settings would be most likely to cause site loading 
   issues?
 * Thanks!
    -  This topic was modified 5 years, 7 months ago by [bobjones](https://wordpress.org/support/users/bobjones/).

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/site-crashed-loading-only-html/#post-13452058)
 * first and foremost clear any caches you might have and if the problem continues
   disable CSS optimization (and if that doesn’t help JS or HTML or Image optimization).
 * but more interesting would be what the underlying reason for AO breaking after
   restoring is; do the files not load with a “404 not found” or do they generate”“
   50x internal server error” or … ?
 *  Thread Starter [bobjones](https://wordpress.org/support/users/bobjones/)
 * (@bobjones)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/site-crashed-loading-only-html/#post-13452224)
 * Users had been receiving 504 errors or seeing only slow-loading html.
 * However, I was able to get the site to function, barely, with just a few Autoptimize
   options enabled, before remembering (with a prompt from GTMetrix) I’d recently
   added an .htaccess rewrite rule to route all instances of my home page to https.
 * Once I removed that rule and reactivated Autoptimize as previously configured,
   everything returned to normal.
 * Now I have to lean on my webhost to route the urls properly on the server.
 * I appreciate the assistance!
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/site-crashed-loading-only-html/#post-13452363)
 * Good you were able to find the culprit! 🙂
 *  Thread Starter [bobjones](https://wordpress.org/support/users/bobjones/)
 * (@bobjones)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/site-crashed-loading-only-html/#post-13458196)
 * Webhost routed the urls to https and I’ve cleaned the database and reactivated
   Autoptimize.
 * GTMetrix gives me an “F” for “Enable compression” and offers this suggestion:
 * _Compressing [https://www.yoursite.org/wp-content/cache/autoptimize/css/autoptimize\_617e4825e5be77c292f61037a2a10e3c.css](https://www.yoursite.org/wp-content/cache/autoptimize/css/autoptimize_617e4825e5be77c292f61037a2a10e3c.css)
   could save 583.4KiB (78% reduction)._
 * Can you recommend any settings to fix this?
 * Thanks!
    -  This reply was modified 5 years, 7 months ago by [bobjones](https://wordpress.org/support/users/bobjones/).
    -  This reply was modified 5 years, 7 months ago by [bobjones](https://wordpress.org/support/users/bobjones/).
 *  Thread Starter [bobjones](https://wordpress.org/support/users/bobjones/)
 * (@bobjones)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/site-crashed-loading-only-html/#post-13458244)
 * Never mind!
 * Didn’t realize I have to save each Autoptimize settings page as I go.
 * Going with these recommended settings has improved my GTMetrix score to an “A”.
 * [https://onlinemediamasters.com/autoptimize-settings/](https://onlinemediamasters.com/autoptimize-settings/)
    -  This reply was modified 5 years, 7 months ago by [bobjones](https://wordpress.org/support/users/bobjones/).
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/site-crashed-loading-only-html/#post-13458288)
 * that’s nice tuturial, hadn’t seen that yet, thanks! 🙂

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

The topic ‘Site crashed, loading only html’ 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

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

 * 6 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/site-crashed-loading-only-html/#post-13458288)
 * Status: resolved