【发布时间】:2014-07-31 01:40:09
【问题描述】:
我已经使用以下命令安装了 Laravel
composer create-project laravel/laravel --prefer-dist
当我打开/ root 时,一切都很好。我看到“你来了”。页面,但我无法制作任何路线。当我编写以下简单路线时,我看到页面未找到错误。
Route::get('hello', function() {
return 'Hello World';
});
错误:
Not Found
The requested URL /afifnet/public/hello was not found on this server.
Apache/2.2.22 (Ubuntu) Server at localhost Port 80 please help me.
【问题讨论】:
-
/afifnet/public/是您网站的根目录吗? -
您的公用文件夹中有 .htaccess 吗?答案是肯定的,所以
mod_rewrite已经在你的 Apache 上了? (如果您使用的是 Apache) -
可能的 mod_rewrite 没有安装或启用。
-
已解决坦克所有 mod_rewrite 未安装