помогите составить правило для реврайта
http://www.test.ru/game.php?id=1 > http://www.test.ru/game/region/rubrik/text-text-text-1.html
http://www.test.ru/allgame.php > http://www.test.ru/game/
http://www.test.ru/allgame.php?page=1 > http://www.test.ru/game/1/
http://www.test.ru/allgame.php?region=xxx&page=1 > http://www.test.ru/game/xxx/1/
http://www.test.ru/allgame.php?region=xxx&rubrik=zzz&page=1 > http://www.test.ru/game/xxx/zzz/1/
заранее спасибо!