您的位置:首页 > 运维架构 > Apache

apache使用htaccess文件自定义pathinfo

2015-06-30 15:47 651 查看
在用thinkphp的时候,当服务器是以fastcgi模式运行时,去掉index.php会出现
No input file specified
错误(好久之前遇到过,当时不知道怎么解决。。。。)

今天再次遇到这个问题,把当前目录重写到下一级目录的时候,url里面有pathinfo参数的时候,也会报这个错误,

RewriteRule ^xxxx.html$  xyj/aaaa.php/a/b/c


改成这样

RewriteRule ^htmlmap.html$  xyj/aaaa.php [L,E=PATH_INFO:a/b/c]


就ok了

参考http://www.phpstudy.net/a.php/165.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: