Typecho支持PHP7.1 以及apache下伪静态 code

admin 2018-12-30 4635

config.inc.php 文件把原来的

$db = new Typecho_Db('Mysql', 'typecho_');

修改为

$db = new Typecho_Db('Pdo_Mysql', 'typecho_');

即可!

apache 下的伪静态.htaccess内容如下

<IfModule mod_rewrite.c> 
RewriteEngine On 
RewriteBase / 
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]


最新回复 (0)
全部楼主
    • MSDN,我告诉你(中文站)
      2
        登录 注册 获取赞助码
返回