hi,
I am beginning my journing on php development and i am trying to do my own MVC framework. I have a huge problem whith URLS.
My URL Format:
http://example.com/index.php/Controller/Function/Arg1/Arg2/ArgN
everything is working fine but per example when i call it like:
http://example.com/index.php, The default Controller is called, no problems with that, but if i call like:
http://example.com/Controller/Function/Arg1/Arg2/ArgN,
The default Controller is called again, and my script will only load the right controller if index.php is added in the URL like that:
http://example.com/index.php/Controller/Function/Arg1/Arg2/ArgN
there is a way to always include the index.php in the URLS request, maybe using .htaccess or some function, i tried to do many things but no success