由于宝塔在nginx中配置为默认走index.php规则,所以如果固定链接中去掉index.php的话,需要在宝塔的配置中引入一条规则:
规则如下:
location / {
try_files $uri $uri/ /index.php?$args;
}
经过验证,wordpress和typecho都成功。
由于宝塔在nginx中配置为默认走index.php规则,所以如果固定链接中去掉index.php的话,需要在宝塔的配置中引入一条规则:
规则如下:
location / {
try_files $uri $uri/ /index.php?$args;
}
经过验证,wordpress和typecho都成功。
文章不错非常喜欢
第一次来访,表示支持
谢谢。