我在Code Igniter中有一个应用程序,具有URL样式:http://localhost:909/index.php/main/login/
PHP和MySQL已经工作了,但我无法在IIS(Win-server2003)中访问该URL的样式。
我可以成功访问http://localhost:909/info.php/包含phpinfo()脚本。
我应该检查什么?
我想知道我的IIS设置无法像CI那样读取文件夹中的文件(index.php/main/login)我需要更改IIS设置并保持URL原样。
尝试检查route.php,或者需要添加.htaccess文件来配置重写引擎。也许它能帮助你http://codeigniter.com/wiki/mod_rewrite
对不起,我只是在代码上犯了一个错误,index.php应该在localhost内的另一个子文件夹中。
谢谢你的回答。。