Typecho 开启 Gzip
发表于 2016/02/22更新于 2020/04/2824 字1 分钟
AI 摘要由 AI 自动生成
|
修改站点跟目录 index.php,在其中查找。
if (!@include_once 'config.inc.php') {
file_exists('./install.php') ? header('Location: install.php') : print('Missing Config File');
exit;
}
添加如下内容到下一行。
/** 开启gzip压缩 */
ob_start('ob_gzhandler');