我用WAMP运行Win 8 64x。我有一个CodeIgniter项目(v2.13),我遵循了文档和在线教程,了解如何从URL中提取/index.php/
,使我的URL看起来像http://127.0.0.1/petclub/home/index
。
然而,它并不起作用。我得到一个404错误,页面上的消息是:
Not Found
The requested URL /petclub/index.php/home/index was not found on this server.
下面是我的.htaccess
文件中当前包含的内容:
RewriteEngine On
RewriteBase /petclub/
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
我做错了什么?我尝试了所有的建议,但似乎没有一个对我有效。
谢谢
发布于 2013-04-29 17:54:11
你有一个叫做home的控制器吗?
您的家庭控制器中是否有一个名为index的方法?
您需要同时使用这两个工具才能正常工作
https://stackoverflow.com/questions/16264041
复制相似问题