More variables at URL

CLOSED

More variables at URL

Postby jamalissimo » Tue Feb 02, 2010 4:12 pm

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
jamalissimo
 
Posts: 1
Joined: Tue Feb 02, 2010 4:00 pm

Return to New Threads/Problems

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron