I'm creating a PHP page that holds a collection of items displayed to the user similar to an E-commerce site. When the user clicks on an item I would like them to be taken to a more detailed page for that particular item. I have seen the GET request method to do this but the URL looks a bit messy:
e.g. website.com/product.php?id=23
What I'm aiming for is something like this:
website.com/product/<name-of-item-or-page>
Entering that URL would then navigate to the page referenced. How is this done? I know I'm looking to complete this using POST requests, but for this particular problem I wasn't even sure how to Google this. If possible can this be done without external libraries?
Also, what keywords would I Google in the future to narrow down my specific problem? Tried my best with variations of the title.