正如标题所述,我无法让我的网站重定向。我已经做了几次尝试,并且即将失去它。Laravel Route不能与Wamp配合使用
我的.htaccess文件如下:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
我有这个文件放置在WWW/Laravel /公用文件夹以及www目录
- mod_rewrite的启用
- AllowOverride设置为全部
我的主机文件如下
127.0.0.1 localhost
这里是包含在routes.php文件
Route::get('authors', array('uses'=>'[email protected]'));
我有一个控制器命名authors.php路由代码,这里是代码
class Authors_Controller extends Base_Controller {
public $restful = true;
public function get_index() {
return View::make('authors.index');}
}
我正在使用Windows 7旗舰版。我即将把我的脑袋炸开。请帮助我,我吮吸。
你还会介意把系统错误输出什么.. – 2013-03-25 03:34:10
[Sun Mar 24 20:19:47 2013] [error] [client 127.0.0.1]文件不存在:E:/ wamp/www/Laravel/public/authors – spm 2013-03-25 03:35:08
检查你的视图文件,如果存在的话,或者在控制器中的路由,如果它设置正确 – 2013-03-25 03:48:54