I want to create a router for my web application, so that all the requests are redirected to index.php and then index.php will route the requests to the respective scripts. This is just to achieve clean URLs for my web application, so that a URL http://localhost/portal/admin.php?var1=val1&var2=val2
is seen in browser address bar as http://localhost/portal/index.php/admin/var1/val1/var2/val2
If there is any good router already present, kindly let me know the link to it as well as an example of how to use it so that I can implement in my web application accordingly.
Kindly let me know if any more information is required.
Thanks in advance.