Can you explain how mod\_rewrite works using this as an example:

```
http://www.domain.com/page.php?q=keyword1,keyword2,keywordn&page=x&param=i
=>
http://www.domain.com/page/keyword1,keyword2,keywordn?page=x&param=i

```

Where `n`, `x`, & `i` may be any integer.

The purpose is twofold here:

* I need the appropriate solution to that specific example and
* I want to learn how it was done.

I am using Apache.