天使漫步IT工作室

宝塔BT安装的wordpress或者typecho去掉index.php引起404问题


由于宝塔在nginx中配置为默认走index.php规则,所以如果固定链接中去掉index.php的话,需要在宝塔的配置中引入一条规则:

规则如下:

location / {
      try_files $uri $uri/ /index.php?$args;
    }

经过验证,wordpress和typecho都成功。

当前页面是本站的「Baidu MIP」版。查看和发表评论请点击:完整版 »