Because speed is so important for SEO, it shouldn’t come as a surprise that we’re very big on it. There are all kinds of great plugins for speeding up WordPress. Personally, I’ve found WP Rocket is hands down the best – which makes it unsurprising that it’s a premium plugin that costs a few bucks.
But one thing all of the myriad speed plugins have in common is a certain level of complexity. You need to have a basic understanding of how web servers work, what the difference between server and client side caching is, and even then most WordPress themes don’t like to have all the various options turned on.
As a quick a dirty fix, just throw this code in your .htaccess file for your site:
Yes it’s quite a lot of code, but for 98% of WordPress sites it will immediately make your site run faster, score more highly on speed tests, and (barring that other 2%) is fool proof. It’s the fastest way to make WordPress fast.
(If you’re looking for where to stick it, assuming you use the most common server setup the .htaccess file just sits in the top level of your live site’s file directory.)