I wrote a plugin that can fetch data from an external JSON source and displays a very few details in a list. Each item is clickable to be displayed with more details on a specific template. To do this, each item has its own URL like this : http://localhost/details/?id=125
The get parameter is meant to retrieve more data from the JSON source thanks to query_vars. It works without a hitch but I would like URLs to be rewrote this way : http://localhost/details/name-of-the-item/id
Is that possible ? How can I do this ? (I can pass as many get parameters as possible from the list page if needed)