Search form parameter rewrite rule

parovav

New Member
I am realy ,realy newbie in rewrite rules..
I have php script with a search form and with three imputs : title ; category ; region .User can search by title category or region , so the parameters can not be in a specific order.Sometime they search by title sometime only by category an region...my rules\[code\]RewriteRule ^list/(.*)/(.*)/(.*)/$ /List.php?category=$1&region=$2&title=$3 [L]RewriteRule ^list/(.*)/(.*)/$ /List.php?category=$1&region [L]RewriteRule ^list/(.*)/$ /List.php?category=$1 [L] RewriteRule ^list/(.*)/(.*)/$ /List.php?region=$2&title=$3 [L]RewriteRule ^list/(.*)/(.*)/$ /List.php?category=$12&title=$3 [L]\[/code\]....and so on until I finish all permutation.Is there a way to control variables to get this :\[code\]/list/category/ /list/region//list/region/category//list/category/region//list/region/title/.....\[/code\]?thanks in advance
 
Back
Top