PatrickLouys / no-framework-tutorial

A small tutorial to show how to create a PHP application without a framework.
MIT License
1.53k stars 188 forks source link

05-router.md - Apache - FallbackResource #76

Open jeffchulg opened 2 years ago

jeffchulg commented 2 years ago

Hi,

while following this, I experienced issues with routing: /hello-world was leading to file not found error.

I solved this by adding following line in the Directory directive of the public folder:

FallbackResource /index.php