I've recently started a new site, and for the sake of keeping links clean I want to rewrite urls.
I need to rewrite the links like this :
www.domain.com/post.php?post=15
↓
www.domain.com/post/15
and
www.domain.com/user.php?user=USERNAME
↓
www.domain.com/user/USERNAME
I used to change links from www.domain.com/page.php?page=PAGE to www.domain.com/PAGE , but this time I need both "post" and "user" to work fine, and I can't quite figure it out.
Can someone please help me out with a tip on how to do this?
Thank you in advance
Chris
Solved with Jon Lin's help. His answer works great.