Hi there, I’ve been trying to access routing using my index.php, but only one route (to “/”) works.
My site address: https://juniordev-task.000webhostapp.com/
How my index.php looks like:
What happens after I try to access https://juniordev-task.000webhostapp.com/addproduct:
How my folder structure looks like:
How my Router class looks like:
I can’t figure out why the code in the Router class is not executed the way I expect it to.
On my local server, everything works fine.
Any ideas?