Arama formu parametre yazma kuralı

0 Cevap php

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...

benim kurallarım

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]

....and so on until I finish all permutation. Is there a way to control variables to get this :

/list/category/ /list/region/
/list/region/category/
/list/category/region/
/list/region/title/.....

? thanks in advance

0 Cevap