Wordpress

Best Ways to Enable GZIP Compression in WordPress

gzip-compression

Speed Up your WordPress website with Gzip compression. Save Bandwidth and increase website speed simply by enabling compression with GZIP.This can be done through .htaccess file and other ways also.

GZIP Compression

Compress HTML and CSS with GZIP to save file size up to 90 percent. Which results in your website page load fast. Moreover, you are saving bandwidth. Website Speed is one of the SEO concepts, fast loading websites will get better keyword rankings in Google Search engine result page.

Read More About: 3 Methods to Enable GZIP Compression

ENABLE GZIP COMPRESSION THROUGH .HTACCESS

Basically .htaccess file controls many important things for your website.If you are not familiar with .htaccess file, learn about it and use with caution.Add the following code to your WordPress website .htaccess file.You can access this file under file manager with Server login credentials or WordPress SEO by Yoast plugin.

mod_gzip_on Yes
mod_gzip_dechunk Yes
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_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*

ENABLE GZIP COMPRESSION WITH W3 TOTAL CACHE.

WP Super Cache and W3 total cache are most popular WordPress cache plugins, if you are using W3 total cache, then it’s very easy to enable GZIP compression with inbuilt Browser cache option.

GZIP COMPRESSION WITH WORDPRESS PLUGIN

If you are not using W3 Total cache and not familiar with .htaccess, then go for the alternate method of installing a WordPress plugin.WP HTTP Compression plugin allows your WordPress blog to output pages compressed in gzip format if a browser supports compression.

GZIP COMPRESSION TEST SITES

Verify Gzip Compression test online with HTTP compression test tool and Check GZIP compression tool.

About the author

Syed Moin Ali

Hello My Name is Syed Moin Ali and I am the founder of PC Learnings Here on this blog I write about Blogging, SEO, Internet Tricks, Social Networking Site, and Make Money

Add Comment

Click here to post a comment