Jamers Posted June 7, 2018 Report Share Posted June 7, 2018 今天把codeigniter升级到3.1.8,所有配置文件都看过了,就是使用 xxxx.xx/index.php/welcome 直接显示404,然后打印$_SERVER变量中发现居然没有PATH_INFO,然后开始漫长的搜索。 最后处理结果: 在apache的配置文件中目录配置中,添加下列语句: AcceptPathInfo On 然后重启Apache,就可以了。。唉。。。 Link to comment Share on other sites More sharing options...
Jamers Posted June 8, 2018 Author Report Share Posted June 8, 2018 CI_ENV设置用以切换不同的配置文件。 apache httpd.conf下面添加,可选参数:development,testing,production <IfModule env_module> SetEnv CI_ENV development </IfModule> Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now