RewriteRule setting problem

RewriteRule ^products/([^/]+)/([^/]+)$ review/product.php?prod_id=$1&red_id=$2

I set this rewrite
but I just found a problem: there must be prod_id and red_id to
I red_id is selective, prod_id is necessary
so what I want to do is: when I enter the products/XXX, it can also be effective, but not necessarily have to have red_id (products/XXX / AAA) to browse normally, how can this be set?


just let two of the last decisions go

RewriteRule ^products/([^/]+)/([^/]+)$ review/product.php?prod_id=$1
RewriteRule ^products/([^/]+)/([^/]+)$ review/product.php?prod_id=$1&red_id=$2
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9b72f-47632.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e9b72f-47632.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?