Typecho后台设置永久链接后,会在域名后加上 index.php。
取消方法
- 在后台启用使用地址重写功能,然后自定义文章路径
在 nginx 配置中加入:
if (!-e $request_filename) { rewrite ^(.*)$ /index.php$1 last; } location ~ .*\.php(\/.*)*$ { include fastcgi.conf; fastcgi_pass 127.0.0.1:9000; }
Typecho后台设置永久链接后,会在域名后加上 index.php。
在 nginx 配置中加入:
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php$1 last;
}
location ~ .*\.php(\/.*)*$ {
include fastcgi.conf;
fastcgi_pass 127.0.0.1:9000;
}
还没有评论呢!