Want to use a rewrite engine for a directory, but cannot seem to get things working, it's basically this: category url: dir/index.php?go=subcat&id=86 rewrite url: dir/86.php tried (not working): RewriteRule ^([0-9]+).php$ index.php?go=subcat&id=$1 [L,NC] For the subcategories within the categories want to do this: subcat url within a category: dir/index.php?go=subcat&id=196&pageNum_pages=3 rewrite: dir/31/196.php or another example: subcat url within a category: dir/index.php?go=subcat&id=196&pageNum_pages=4 rewrite: dir/41/196.php I tried several things but don't even know where to start with the rewrite rules, I someone can help me or PM a quote to make this work, I would be very happy. Thanks in advance.