How to make a clean .htaccess?
===

i have problem with htaccess and not quite good at it. I want to know how to make a url clean.

Here is the original

> http://site.com/page.php?p=index1/index2

and i want this type of url

> http://site.com/page/index/index2

and how do i get the *p value* which is *index1/index2* if i what to **$_get** it from the database?