工作,我用下面的命令路由不laravel 4
composer create-project laravel/laravel --prefer-dist
安装Laravel,一切都很好,当我打开/ 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 /'是您网站的根? – RMcLeod
公用文件夹中是否存在.htaccess?答案是肯定的,所以'mod_rewrite'已经在你的Apache上了? (如果您使用的是Apache) –
可能的mod_rewrite没有安装或启用。 –