I have just played with Laravel some hours ago and seemed to hit a wall. I have seen similar questions here but they're about Apache
Route::get('/', function()
{
return 'hello world';
});
The routing above worked perfectly for localhost/helloworld/public/
, however when I changed to this
Route::get('about', function()
{
return 'this is about';
});
and I used this url localhost/helloworld/public/about
, it kept displaying 404 Not Found. Even when I tried localhost/helloworld/public/index.php/about
, it still didn't work.
This is my nginx default.conf And this is my .htaccess
I have heard about enabling mod_rewrite on nginx but have't got a clue how to do that.
Please help. Thank you in advance.