First, I know how to rewrite a URL like example.com/test.php?id=1.
What I dont know is how to remove the test.php part of the url so that the new url is called:
example.com/1/
I hope someone know how to do that, and yes, I've read a hundreds of SO items about it.
Thanks