I'm currently working on a little PHP/JS application, but I'm absolutely not satisfied with the way the URL's look. They are something like domain.com/file.php?id=2&delete=true
or something similar...
Now I'm trying to get the URL's in a nicer way, something like domain.com/file/2
, leading to the same result. Now I found some little routing plugins, but I don't know if that's the thing I need. Basically I don't really mind about dirty code or whatever, as I'm just trying and learning, but the URL's would really matter to me.
Is there an easy DIY solution for these things or should I use a routing-plugin or what's the best way to do this?
Edit: it's not really a duplicate, I wasn't looking for doing all with htaccess, as this is limited, I'm looking for a PHP-Solution with minimal routing