Hi guys, I'm new to mod_rewrite and starting from scratch. Somehow I managed to create a rule which works for e.g. http://www.page.com/test.php?category=1
RewriteEngine On
RewriteRule ^([^.^/]+)(/)?$ %{DOCUMENT_ROOT}/test.php?category=$1 [L]
this works for http://www.page.com/category/
now I need next rule for. e.g. http://www.page.com/test.php?category=1&subcategory=1 which redirects me to:
http://www.page.com/category/subcategory/
thanks for help