我想将这四个获取变量(sch,val,lmt,ord)合并成一个很好看的url re_write。目前我已经在我的.htaccess文件下面,它工作在所有变量都包括在内,但是,如果我只输入了前两个变量(SCH & VAL)它打破:在查询字符串中获取变量re_writes
RewriteRule ^search/([^/]*)/([^/]*)/([^/]*)/([^/]*)$
search.php?sch=$1&val=$2&lmt=$3&ord=$4 [L]
www.domain.com/搜索/城市/伦敦/ 5/asc工作 www.domain.com/search/City/London但这不是
这里有一个重复。我没有投票结束,因为答案可能不是你正在寻找的东西:http://stackoverflow.com/questions/2219098/cleaning-up-nested-mod-rewrite-statements – 2010-09-01 13:02:59