Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法Gzip我的wordpress网站_Wordpress_Web_Hosting - Fatal编程技术网

无法Gzip我的wordpress网站

无法Gzip我的wordpress网站,wordpress,web,hosting,Wordpress,Web,Hosting,我试图使用放入.htaccess文件的Gzip代码来Gzip我的wordpress站点。但当我登录mysite时,它会显示应用程序错误。我正在使用免费主机000webhost,我的代码是 AddOutputFilterByType泄气文本/普通 AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/css AddOutp

我试图使用放入.htaccess文件的Gzip代码来Gzip我的wordpress站点。但当我登录mysite时,它会显示应用程序错误。我正在使用免费主机000webhost,我的代码是


AddOutputFilterByType泄气文本/普通
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE应用程序/xml
AddOutputFilterByType DEFLATE应用程序/xhtml+xml
AddOutputFilterByType DEFLATE应用程序/rss+xml
AddOutputFilterByType DEFLATE应用程序/javascript
AddOutputFilterByType DEFLATE应用程序/x-javascript

Gzip压缩–在网站的WordPress.htaccess文件中添加以下代码


#压缩HTML、CSS、JavaScript、文本、XML和字体
AddOutputFilterByType DEFLATE应用程序/javascript
AddOutputFilterByType DEFLATE应用程序/rss+xml
AddOutputFilterByType DEFLATE应用程序/vnd.ms-fontobject
AddOutputFilterByType放气应用程序/x-font
AddOutputFilterByType放气应用程序/x-font-opentype
AddOutputFilterByType放气应用程序/x-font-otf
AddOutputFilterByType放气应用程序/x-font-truetype
AddOutputFilterByType放气应用程序/x-font-ttf
AddOutputFilterByType DEFLATE应用程序/x-javascript
AddOutputFilterByType DEFLATE应用程序/xhtml+xml
AddOutputFilterByType DEFLATE应用程序/xml
AddOutputFilterByType泄气字体/opentype
AddOutputFilterByType DEFLATE字体/otf
AddOutputFilterByType DEFLATE字体/ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType放气图像/x图标
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType泄气文本/普通
AddOutputFilterByType DEFLATE text/xml
#删除浏览器错误(仅适用于真正旧的浏览器)
浏览器匹配^Mozilla/4 gzip纯文本/html
浏览器匹配^Mozilla/4\.0[678]无gzip
BrowserMatch\bMSIE!没有gzip!仅限gzip文本/html
头附加用户代理

谢谢您的快速反馈,先生。我已经这样做了,当我使用代码Gzip不工作时。@nuwansiriwardhana您正在使用任何插件,您正在使用旧浏览器,然后查看我的编辑我的回答。我想000webhost不允许用于Gzip的免费托管站点。是这样吗。我取消标记并将其重新插入.htaccess文件。再次显示应用程序错误请在此处检查gzip是否已启用