0

In Laravel I can simply have an route with period like so:

Route::get('/foo.bar', function() {
  return 'Hello';
});

But in Lumen :

$router->get('/foo.bar', function() {
  return 'Hello';
});

This always returns 404 error:

The requested resource /foo.bar was not found on this server.

Please tell me why can't we have routes containing periods?

Any help would be great appreciated.

P.S:

If I replace the period with dash ( - ) or underscore ( _ ) it works fine.

Hamed Kamrava
  • 12,359
  • 34
  • 87
  • 125

1 Answers1

1

Most likely this is a server configuration issue. If using Apache try configuring .htaccess to remove .index.php when serving the page

Silvanus Matiku
  • 149
  • 1
  • 6