yaf路由或者是访问路径问题,不管ip地址后跟什么route路径,都走的默认index.php
来源:2-1 准备工作-快速搭建基于Yaf框架的项目环境
许安强
2018-04-13

不管ip地址后跟什么route路径,都走的默认index.php

写回答
2回答
-
Pangee
2018-04-14
这块的router可以不用。再往后看看视频,有提到。
00 -
许安强
提问者
2018-04-13
nginx下的rewrite功能后始终无法得到路径解析,uri始终为空
使用于yaf的enable-php.conf(fastcgi配置)
location ~ .php$ {
fastcgi_split_path_info ^(.+.php)(/.+)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
00
相似问题