I am running fresh Lumen installation inside vagrant.
When i access localhost:8080/public it shows the Lumen Welcome Page When i access localhost:8080/public/index.php/hello It works But when i access localhost:8080/public/hello It shows 404 Not Found
My public/.htaccess file is default nothing changed. In my public/index.php file i made the following changes
From
$app->run();
To
$app->run($app['request']);
In my vm i ran following commands
sudo a2enmod rewrite
sudo service apache2 restart
My routes.php file says
$app->get('/', function () use ($app) {
return $app->welcome();
});
$app->get('/hello', function() {
return 'Hello World';
});
What is causing this issue trying to find out but no luck :(
Thanks
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire