Hey, Hoz here. Today’s hack is how to set up gzip htaccess style. If you use WordPress, doing it this way will save you having to use a plugin, although most cache plugins now come with this feature, so remember to turn it off in the plugin if you’re going to do it the htaccess way.
If you need it, here’s a video showing you how to get to that point:
Gzip compression will significantly improve the performance of your website and is a great way to make WordPress faster.
Before you roll up your sleeves and get stuck into this, make sure you’ve taken the necessary precautions beforehand, so that you have a way to roll back should the worst happen. Let’s not screw up your website.Backing up your WordPress site is a necessary evil. Tedious, but it has to be done.Click To Tweet
Those precautions are:
- backup your website
- download a copy of your htaccess file
Once you’ve got that out the way, here’s all you do:
- Step 1: edit your htacess file and paste the code below.
- Step 2: press save.
- Step 3: check your website hasn’t exploded.
And here’s the code:
Gzip htaccess code
# BEGIN GZIP
# END GZIP
This was a Hoz tutorial on gzip htaccess featured on the Youtube Channel. Make sure you CLICK TO SUBSCRIBE to catch all the video updates!
Please Share This Content
Hey, I would really appreciate it if you share this content with your friends and followers :)?