【发布时间】:2015-03-18 04:40:13
【问题描述】:
我有两条路线,一条有效,另一条无效,我不知道为什么。
第一个有效,当我访问主页时,视图按预期显示。
Route::get('/', array('as' => 'homepage', function()
{
return View::make('home');
}));
第二个出现NotFoundHttpException 错误
Route::get('about', array('as' => 'aboutpage', function()
{
return View::make('about');
}));
我的其他 Laravel 项目在这种格式下运行良好,主页也运行良好。如果我访问 localhost/laravel/public/index.php/about 它可以工作,但 `localhost/laravel/public/about 不能。
我正在使用 WAMP 并且 Apache 模块 rewrite_module 已打开。我已经重启了很多次了。
【问题讨论】:
-
AllowOverride 是否设置为 all ?
标签: laravel laravel-4 laravel-routing