I've got a small problem with a rewrite rule.. Got this working: Original dynamic url: directory.com/dir/index.php?go=subcat&id=196 used this rewrite: RewriteRule ^([0-9]+).php$ index.php?go=subcat&id=$1 [L,NC] and got this: directory.com/dir/196.php Works great. Now the problem: a sub category: Original dynamic url: directory.com/dir/index.php?go=subcat&id=196&pageNum_pages=2 Want to get directory.com/dir/21/196.php and for instance for: directory.com/dir/index.php?go=subcat&id=196&pageNum_pages=3 directory.com/dir/31/196.php directory.com/dir/index.php?go=subcat&id=196&pageNum_pages=7 directory.com/dir/71/196.php and so on.. Looked in the forums, tried some stuff, but can't seem figure it out..