How to enable GZIP compression on your site – Speeding up your page is a must, especially when Google announces page speed is important in their ranking. While the new speed update will affect mobile searches, speed is also important for desktop searches.
As such, your page will not load faster, just for Google. You also want your page to load quickly for your visitors. A relatively new report from DoubleClick (part of Google) shows that 53% of mobile users will abandon a website if it takes more than 3 seconds to load.
Therefore, the bounce rate will decrease, the time visitors will spend on your site will increase and increase the conversion rate, you need to adjust it to load faster than before.
You increase your page speed in several ways: optimizing your code, reducing page size, compressing images and more. This article, we will show you how to enable Gzip compression on cPanel hosting account (Apache server).
What is Gzip compression?
Gzip is a way of compressing files (reduce size by up to 80%).
Gzip compression significantly reduces bandwidth costs but also helps speed up file transfers between server and browser.
You can check if your site is using Gzip compression with the HTTP compression tool. Or use GTmetrix to get a more sophisticated analysis of your site.
Activate mod_deflate on your Server
To enable GZIP on your site is to install the mod_deflate module on your web server. Reputable hosting companies enable this feature on their servers, so there's nothing to do with this.
If you are unsure, just ask the support of your service provider or you can upload the php file to your site containing the following code:
See more : Build a Website with WordPress
Activate GZIP in cPanel
If you are using cPanel to manage your hosting account and site, then you need to enable Gzip.
Log in to your cPanel account
Access software> Website optimization
Check compression of all content
Click the Update Settings button.
Now see how to enable Gzip on your site.
Activate Gzip via .htaccess on a simple website
If you run a simple PHP or HTML website, you enable Gzip compression with the .hataccess file by adding the following code:
## mod_gzip ##
mod_gzip_item_include file . (html? | txt | css | js | php | pl) $
mod_gzip_item_include handler ^ cgi-script $
mod_gzip_item_include mime ^ text /.*
mod_gzip_item_exclude mime ^ image /.*
mod_gzip_item_exclude rspheader ^ Content-Encoding:. * gzip. *
Enable GZIP compression on WordPress
You can enable Gzip on your WordPress site by modifying the .htaccess file or you can install a plugin.
Enable GZIP compression on Joomla
The .htaccess trick also works in this case, but if you don't want to ruin the code, there's another option:
Log into your Joomla admin panel
Access global configuration> server tab
In Server Settings, click Yes to compress the Gzip page
Save settings (upper left of the screen)
Your Joomla site is not compressed with Gzip and it will load much faster.
See more : Create Web
Just take a few minutes, you enable the GZIP compression feature and will greatly speed up your page.
If you haven't used Gzip yet, then your page is slower than your competition and they will have a great advantage.
- What Is Mailchimp- The Importance Of Mailchimp For Email Marketing
- Changing the Blogger Title Tag blogger
- Photos ABT Audi AS4 cars & interior Cabriolet 2003
- Donald Trump is advertising for Bitcoin after backing the Fed to print $ 6 trillion
- Bitcoin price will drop to $ 4,800 after this incident is confirmed