由于某些原因,在 CI 2.0 中,URLS 不起作用。
http://localhost/myapp/ - will open the default controller (bc it finds index.php)
http://localhost/myapp/index.php/home/ - will open the default controller
http://localhost/myapp/home/ - will show path not found
我不确定这是 2.0 的问题还是我的配置的特定问题。
我在 Mac OS X Snow Leopard 上运行 Apache 2。
我寻找 .htaccess 解决方案,但找不到 CI 2.0 的任何解决方案。