mengaktifkan compress Gzip di wordpress

Posted on

beberapa keuntungan apabila kita mengaktifkan compress Gzip untuk wordpress  yaitu  bisa meminimalis reduce page dan css 70% . berikut ini caranya :

1.login ke cpanel blog wordpress anda.

2.masuk ke direktori blog wordpress anda

3. edit .htaccess nya dan tambah kan kode berikut .

# compress text, HTML, JavaScript, CSS, and XML
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

# remove browser bugs
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent

save !

sekian dari saya semoga membantu

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.