Php 使用WAMP和URL重写的CodeIgniter上出现404错误

Php 使用WAMP和URL重写的CodeIgniter上出现404错误,php,url-rewriting,wamp,codeigniter-2,Php,Url Rewriting,Wamp,Codeigniter 2,我正在用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. 以下是我当

我正在用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]
我做错了什么?我尝试了所有的建议,但似乎没有一个对我有用


谢谢

您有叫home的控制器吗

您的家庭控制器中是否有一个名为index的方法

这两种方法都需要