卡卡北 发表于 2018-12-27 18:08

什么是“path_info”

在Kangle后台,“配置”——“其他选项”中,有一个“支持path_info”


那“支持path_info”是什么意思呢?

path_info来代替Rewrite来实现伪静态页面, 另外不少PHP框架也使用path_info来作为路由载体

在web端中, 当不加配置的时候, 对于PHP脚本, Accept pathinfo是默认接受的

path_info是服务器状态中的一个参数,通过$_server['path_info']可以查看内容

比如原来访问地址:
https://www.ys166.com/index.php/1000.html
通过程序和web端支持,可以写成:
https://www.ys166.com/index/1000.html
类似的链接

卡卡北 发表于 2018-12-27 18:12

更进阶的解释:

什么是PATHINFO
**** Hidden Message *****

卡卡北 发表于 2018-12-27 21:33

相关:
Apache下让PHP支持path_info的方法
Nginx下PHP支持path_info的方法
IIS下让PHP支持path_info的方法
Kangle下让PHP支持path_info的方法
页: [1]
查看完整版本: 什么是“path_info”