Using .htaccess file for good looking urls
===

What I'm trying to do is make my website's urls look prettier to the users.  
For example I have this link in the **index.php** file in **a href** tags:
>index.php?v=class&id=5

And I want the user to see in the address bar this:
>www.mysite.com/class/5

I have tried using this code:
>RewriteRule /([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/?$ index.php?v=$1&id=$2

But I found out that it does the opposite. It makes the good looking urls turn into bad ones. It would take the _www.mysite.com/class/5_ and show this: _www.mysite.com/index.php?v=class&id=5_. What should I do?