I have searched for this for a while now, but not found what I am looking for.
I have a PHP 8 site which is currently in development, to navigate from page to page, the url is :
https://websitename.com/index.php?page=test&id=189
There are currently only two parameters passed in this way, and they will always be called PAGE and ID. What I want to do is to format this URL in the following way:
https://websitename.com/test/189
Essentially, the page name and ID number could be anything, and I don't really want to map line for line in the .htaccess file as these values are dynamic.
Does anyone know how to do this in PHP or even point me at a tutorial?
Any assistance would be appreciated.