今天有人讨论 BAE,看了一下真的是便宜,就把博客迁移了

迁移过程也就是传代码,测试,首先你得熟悉svn/git

我采用的是全新重装的方法,整个库迁移过去,遇到了一些问题,整理一下

  • 不要使用Tyoecho自带的安装模块来安装,直接新建config.inc.php,更改对应的数据库参数
    sp170407_175629.png
  • 更改路由地址规则,var/Typecho/Request.php 223 line in_array($_SERVER['SERVER_PORT'], array(80, 443))in_array($_SERVER['SERVER_PORT'], array(80, 443, 8080))
    sp170407_175759.png
  • 配置app.conf 新增 - check_exist : not_exist script : /index.php
    sp170407_175845.png

对于http站点 以上就够了 https 站点还需要再 config.inc.php 中添加 define('__TYPECHO_SECURE__',true);