Been reading about this for a while now and I'm close but struggling with the final hurdle.
I have a url like this: site.com/detail/123/some-description/maybe-some-more-description
that I want to become
site.com/details.php?id=123
I've got this so far
RewriteRule detail/(.*)/.*$ details.php?id=$1
which according to this (https://htaccess.madewithlove.be/) results in
details.php?id=123/some-text
how do I get rid of the some-text on the end?