I would like to know how to remove finename and extension from a URL using .htaccess file.
These are the URL's
/post.php?id=1&title=test-title
/user.php?id=1&name=username
/about.php
I don't want to remove the file name from about,php
So i want the output to be like below
/1-test-title
/1-username
/about
Can someone point me out the best way to do this?