My website configuration is :
L index.php
L assets
L all my files like css/js...
L views
L page1.php
L page2.php
My index read the url, take the information after the "/", and he load the right view in "views".
But when I'm calling another page, I'm using a <a href='page1.php'>
When I click on the link, my url is like : mydomain.com/page1.php, my website try to load the page1.php but it doesn't exist at the website racine. I want that my website load the index.php, in it, "page1.php" is watching then the right view can be loaded.
How can I do it without my 404 error...
Actually, when I'm clicking on a link, the index isn't called so all the time I have the 404 error.