{"id":25,"date":"2012-04-09T22:47:31","date_gmt":"2012-04-09T14:47:31","guid":{"rendered":"http:\/\/fishinbox.tk\/?p=25"},"modified":"2012-04-09T22:47:31","modified_gmt":"2012-04-09T14:47:31","slug":"enable-the-gzip-compression","status":"publish","type":"post","link":"https:\/\/zhuangzr.me\/wordpress\/2012\/04\/enable-the-gzip-compression\/","title":{"rendered":"Enable the Gzip Compression"},"content":{"rendered":"<p>Have been struggling on how to turn on the gzip compression. I mean the Super cache plugin enabled compression but not always works. So I searched the Internet to find solutions, and got nothing.<\/p>\n<p>Until then, someone mentioned it can be enabled by modifying the .htaccess and here follows the code,<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\"> SetOutputFilter DEFLATE\nAddOutputFilterByType DEFLATE text\/html text\/css image\/gif image\/jpeg image\/png application\/x-javascript <\/pre>\n<p>It works! Thank god!<\/p>\n<p>And good night the world.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have been struggling on how to turn on the gzip compression. I mean the Super cache plugin enabled compression but not always works. So I searched the Internet to find solutions, and got nothing. Until then, someone mentioned it can be enabled by modifying the .htaccess and here follows the code, SetOutputFilter DEFLATE AddOutputFilterByType DEFLATE &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/zhuangzr.me\/wordpress\/2012\/04\/enable-the-gzip-compression\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Enable the Gzip Compression&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[24,33,34],"class_list":["post-25","post","type-post","status-publish","format-standard","hentry","category-website","tag-apache","tag-gzip","tag-htaccess"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.9 - aioseo.com -->\n\t<meta name=\"description\" content=\"A way to Enable Website Server Gzip Compression by modifying .htaccess\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Hamilleton\"\/>\n\t<meta name=\"google-site-verification\" content=\"MU5z5UygVAc-wvTryHZh_Pyu9TTGhb65shw7AGmXpgE\" \/>\n\t<meta name=\"keywords\" content=\"website,server,gzip,compression,.htaccess,apache,gzip,htaccess,web site\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/zhuangzr.me\/wordpress\/2012\/04\/enable-the-gzip-compression\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.9\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ZigZagRoad | Thoughts in Life and Research on Work\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Enable Website Server Gzip Compression | ZigZagRoad\" \/>\n\t\t<meta property=\"og:description\" content=\"A way to Enable Website Server Gzip Compression by modifying .htaccess\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/zhuangzr.me\/wordpress\/2012\/04\/enable-the-gzip-compression\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/ziruizhuang.github.io\/assets\/img\/prof_pic.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/ziruizhuang.github.io\/assets\/img\/prof_pic.jpg\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2012-04-09T14:47:31+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2012-04-09T14:47:31+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Enable Website Server Gzip Compression | ZigZagRoad\" \/>\n\t\t<meta name=\"twitter:description\" content=\"A way to Enable Website Server Gzip Compression by modifying .htaccess\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/ziruizhuang.github.io\/assets\/img\/prof_pic.jpg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/2012\\\/04\\\/enable-the-gzip-compression\\\/#article\",\"name\":\"Enable Website Server Gzip Compression | ZigZagRoad\",\"headline\":\"Enable the Gzip Compression\",\"author\":{\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/author\\\/hamilleton\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/#person\"},\"datePublished\":\"2012-04-09T22:47:31+08:00\",\"dateModified\":\"2012-04-09T22:47:31+08:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/2012\\\/04\\\/enable-the-gzip-compression\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/2012\\\/04\\\/enable-the-gzip-compression\\\/#webpage\"},\"articleSection\":\"Web Site, apache, gzip, htaccess\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/2012\\\/04\\\/enable-the-gzip-compression\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/category\\\/study-research-work\\\/#listItem\",\"name\":\"Study, Research and Work\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/category\\\/study-research-work\\\/#listItem\",\"position\":2,\"name\":\"Study, Research and Work\",\"item\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/category\\\/study-research-work\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/category\\\/study-research-work\\\/website\\\/#listItem\",\"name\":\"Web Site\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/category\\\/study-research-work\\\/website\\\/#listItem\",\"position\":3,\"name\":\"Web Site\",\"item\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/category\\\/study-research-work\\\/website\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/2012\\\/04\\\/enable-the-gzip-compression\\\/#listItem\",\"name\":\"Enable the Gzip Compression\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/category\\\/study-research-work\\\/#listItem\",\"name\":\"Study, Research and Work\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/2012\\\/04\\\/enable-the-gzip-compression\\\/#listItem\",\"position\":4,\"name\":\"Enable the Gzip Compression\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/category\\\/study-research-work\\\/website\\\/#listItem\",\"name\":\"Web Site\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/#person\",\"name\":\"Hamilleton\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/author\\\/hamilleton\\\/#author\",\"url\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/author\\\/hamilleton\\\/\",\"name\":\"Hamilleton\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/2012\\\/04\\\/enable-the-gzip-compression\\\/#webpage\",\"url\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/2012\\\/04\\\/enable-the-gzip-compression\\\/\",\"name\":\"Enable Website Server Gzip Compression | ZigZagRoad\",\"description\":\"A way to Enable Website Server Gzip Compression by modifying .htaccess\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/2012\\\/04\\\/enable-the-gzip-compression\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/author\\\/hamilleton\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/author\\\/hamilleton\\\/#author\"},\"datePublished\":\"2012-04-09T22:47:31+08:00\",\"dateModified\":\"2012-04-09T22:47:31+08:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/#website\",\"url\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/\",\"name\":\"ZigZagRoad\",\"description\":\"Thoughts in Life and Research on Work\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/zhuangzr.me\\\/wordpress\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Enable Website Server Gzip Compression | ZigZagRoad","description":"A way to Enable Website Server Gzip Compression by modifying .htaccess","canonical_url":"https:\/\/zhuangzr.me\/wordpress\/2012\/04\/enable-the-gzip-compression\/","robots":"max-image-preview:large","keywords":"website,server,gzip,compression,.htaccess,apache,gzip,htaccess,web site","webmasterTools":{"google-site-verification":"MU5z5UygVAc-wvTryHZh_Pyu9TTGhb65shw7AGmXpgE","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/zhuangzr.me\/wordpress\/2012\/04\/enable-the-gzip-compression\/#article","name":"Enable Website Server Gzip Compression | ZigZagRoad","headline":"Enable the Gzip Compression","author":{"@id":"https:\/\/zhuangzr.me\/wordpress\/author\/hamilleton\/#author"},"publisher":{"@id":"https:\/\/zhuangzr.me\/wordpress\/#person"},"datePublished":"2012-04-09T22:47:31+08:00","dateModified":"2012-04-09T22:47:31+08:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/zhuangzr.me\/wordpress\/2012\/04\/enable-the-gzip-compression\/#webpage"},"isPartOf":{"@id":"https:\/\/zhuangzr.me\/wordpress\/2012\/04\/enable-the-gzip-compression\/#webpage"},"articleSection":"Web Site, apache, gzip, htaccess"},{"@type":"BreadcrumbList","@id":"https:\/\/zhuangzr.me\/wordpress\/2012\/04\/enable-the-gzip-compression\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/zhuangzr.me\/wordpress#listItem","position":1,"name":"Home","item":"https:\/\/zhuangzr.me\/wordpress","nextItem":{"@type":"ListItem","@id":"https:\/\/zhuangzr.me\/wordpress\/category\/study-research-work\/#listItem","name":"Study, Research and Work"}},{"@type":"ListItem","@id":"https:\/\/zhuangzr.me\/wordpress\/category\/study-research-work\/#listItem","position":2,"name":"Study, Research and Work","item":"https:\/\/zhuangzr.me\/wordpress\/category\/study-research-work\/","nextItem":{"@type":"ListItem","@id":"https:\/\/zhuangzr.me\/wordpress\/category\/study-research-work\/website\/#listItem","name":"Web Site"},"previousItem":{"@type":"ListItem","@id":"https:\/\/zhuangzr.me\/wordpress#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/zhuangzr.me\/wordpress\/category\/study-research-work\/website\/#listItem","position":3,"name":"Web Site","item":"https:\/\/zhuangzr.me\/wordpress\/category\/study-research-work\/website\/","nextItem":{"@type":"ListItem","@id":"https:\/\/zhuangzr.me\/wordpress\/2012\/04\/enable-the-gzip-compression\/#listItem","name":"Enable the Gzip Compression"},"previousItem":{"@type":"ListItem","@id":"https:\/\/zhuangzr.me\/wordpress\/category\/study-research-work\/#listItem","name":"Study, Research and Work"}},{"@type":"ListItem","@id":"https:\/\/zhuangzr.me\/wordpress\/2012\/04\/enable-the-gzip-compression\/#listItem","position":4,"name":"Enable the Gzip Compression","previousItem":{"@type":"ListItem","@id":"https:\/\/zhuangzr.me\/wordpress\/category\/study-research-work\/website\/#listItem","name":"Web Site"}}]},{"@type":"Person","@id":"https:\/\/zhuangzr.me\/wordpress\/#person","name":"Hamilleton"},{"@type":"Person","@id":"https:\/\/zhuangzr.me\/wordpress\/author\/hamilleton\/#author","url":"https:\/\/zhuangzr.me\/wordpress\/author\/hamilleton\/","name":"Hamilleton"},{"@type":"WebPage","@id":"https:\/\/zhuangzr.me\/wordpress\/2012\/04\/enable-the-gzip-compression\/#webpage","url":"https:\/\/zhuangzr.me\/wordpress\/2012\/04\/enable-the-gzip-compression\/","name":"Enable Website Server Gzip Compression | ZigZagRoad","description":"A way to Enable Website Server Gzip Compression by modifying .htaccess","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/zhuangzr.me\/wordpress\/#website"},"breadcrumb":{"@id":"https:\/\/zhuangzr.me\/wordpress\/2012\/04\/enable-the-gzip-compression\/#breadcrumblist"},"author":{"@id":"https:\/\/zhuangzr.me\/wordpress\/author\/hamilleton\/#author"},"creator":{"@id":"https:\/\/zhuangzr.me\/wordpress\/author\/hamilleton\/#author"},"datePublished":"2012-04-09T22:47:31+08:00","dateModified":"2012-04-09T22:47:31+08:00"},{"@type":"WebSite","@id":"https:\/\/zhuangzr.me\/wordpress\/#website","url":"https:\/\/zhuangzr.me\/wordpress\/","name":"ZigZagRoad","description":"Thoughts in Life and Research on Work","inLanguage":"en-US","publisher":{"@id":"https:\/\/zhuangzr.me\/wordpress\/#person"}}]},"og:locale":"en_US","og:site_name":"ZigZagRoad | Thoughts in Life and Research on Work","og:type":"article","og:title":"Enable Website Server Gzip Compression | ZigZagRoad","og:description":"A way to Enable Website Server Gzip Compression by modifying .htaccess","og:url":"https:\/\/zhuangzr.me\/wordpress\/2012\/04\/enable-the-gzip-compression\/","og:image":"https:\/\/ziruizhuang.github.io\/assets\/img\/prof_pic.jpg","og:image:secure_url":"https:\/\/ziruizhuang.github.io\/assets\/img\/prof_pic.jpg","article:published_time":"2012-04-09T14:47:31+00:00","article:modified_time":"2012-04-09T14:47:31+00:00","twitter:card":"summary","twitter:title":"Enable Website Server Gzip Compression | ZigZagRoad","twitter:description":"A way to Enable Website Server Gzip Compression by modifying .htaccess","twitter:image":"https:\/\/ziruizhuang.github.io\/assets\/img\/prof_pic.jpg"},"aioseo_meta_data":{"post_id":"25","title":"Enable Website Server Gzip Compression | #site_title","description":"A way to Enable Website Server Gzip Compression by modifying .htaccess","keywords":[{"label":"Website,Server,Gzip,Compression,.htaccess","value":"Website,Server,Gzip,Compression,.htaccess"}],"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-24 07:00:03","updated":"2025-07-03 08:44:20","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/zhuangzr.me\/wordpress\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/zhuangzr.me\/wordpress\/category\/study-research-work\/\" title=\"Study, Research and Work\">Study, Research and Work<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/zhuangzr.me\/wordpress\/category\/study-research-work\/website\/\" title=\"Web Site\">Web Site<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tEnable the Gzip Compression\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/zhuangzr.me\/wordpress"},{"label":"Study, Research and Work","link":"https:\/\/zhuangzr.me\/wordpress\/category\/study-research-work\/"},{"label":"Web Site","link":"https:\/\/zhuangzr.me\/wordpress\/category\/study-research-work\/website\/"},{"label":"Enable the Gzip Compression","link":"https:\/\/zhuangzr.me\/wordpress\/2012\/04\/enable-the-gzip-compression\/"}],"_links":{"self":[{"href":"https:\/\/zhuangzr.me\/wordpress\/wp-json\/wp\/v2\/posts\/25","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zhuangzr.me\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zhuangzr.me\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zhuangzr.me\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zhuangzr.me\/wordpress\/wp-json\/wp\/v2\/comments?post=25"}],"version-history":[{"count":0,"href":"https:\/\/zhuangzr.me\/wordpress\/wp-json\/wp\/v2\/posts\/25\/revisions"}],"wp:attachment":[{"href":"https:\/\/zhuangzr.me\/wordpress\/wp-json\/wp\/v2\/media?parent=25"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zhuangzr.me\/wordpress\/wp-json\/wp\/v2\/categories?post=25"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zhuangzr.me\/wordpress\/wp-json\/wp\/v2\/tags?post=25"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}