get variables in query string re_writes

Junior

New Member
I am trying to combine these four get variables (sch, val, lmt, ord) into a nice looking url re_write. Currently I have the following in my .htaccess file and it works if all variables are included, however, if I only input the first two variables (sch & val) it breaks:\[code\]RewriteRule ^search/([^/]*)/([^/]*)/([^/]*)/([^/]*)$ search.php?sch=$1&val=$2&lmt=$3&ord=$4 [L]\[/code\]www.domain.com/search/City/London/5/asc workswww.domain.com/search/City/London but this doesn't
 
Back
Top