discuz错误 330 (net::ERR_CONTENT_DECODING_FAILED):解决

一般出现这个原因都是GZIP跟某个PHP文件或者某个网页发生冲突

关闭GZIP

方法如下

找到根目录下的:config文件夹中的config_global.php

1
2
3
4
5
6
7
8
$_config['output']['charset'] = 'gbk';
$_config['output']['forceheader'] = 1;
$_config['output']['gzip'] = '0';
$_config['output']['tplrefresh'] = 1;
$_config['output']['language'] = 'zh_cn';
$_config['output']['staticurl'] = 'static/';
$_config['output']['ajaxvalidate'] = '0';
$_config['output']['iecompatible'] = '0';

ctrl f下$_config[‘output’][‘gzip’] = ’0′;吧
把上面的1改成0

留点字迹,哪天忘记了,自个上来看看,哦耶

文章链接:http://www.jqueryba.com/405.html (转载时请注明本文出处及文章链接)

discuz x2.5 gzip 关闭/打开

方法如下

找到根目录下的:config文件夹中的config_global.php

1
2
3
4
5
6
7
8
$_config['output']['charset'] = 'gbk';
$_config['output']['forceheader'] = 1;
$_config['output']['gzip'] = '0';
$_config['output']['tplrefresh'] = 1;
$_config['output']['language'] = 'zh_cn';
$_config['output']['staticurl'] = 'static/';
$_config['output']['ajaxvalidate'] = '0';
$_config['output']['iecompatible'] = '0';

ctrl f下$_config[‘output’][‘gzip’] = ’0′;吧

0是关闭,1是开启。具体的看你需要了。一般情况开启,主机不支持就关闭

留点字迹,哪天忘记了,自个上来看看,哦耶

文章链接:http://www.jqueryba.com/405.html (转载时请注明本文出处及文章链接)