2011-04-21 55 views
-1
RewriteRule ^admin/load/loadSearch/([a-fA-F0-9])/([a-fA-F0-9])$ admin/load/loadsearch.php?type=$1&id=$2 [L] 
RewriteRule ^admin/load/loaddSearch/([a-fA-F0-9])/([a-fA-F0-9])/(.*)$ admin/load/loadsearch.php?type=$1&id=$2&lname=$3 [L] 

它不工作,請幫我..the第三GET值是可選的htaccess的多個獲取值

+1

請說明究竟是行不通的。你想要發生什麼,而發生什麼呢? – 2011-04-21 17:37:28

+0

404錯誤顯示...我想獲得第三個獲取元素也..但在2例...它的工作... – reju 2011-04-21 17:38:50

回答

1

也許這是你想要什麼:

RewriteRule ^admin/load/loadSearch/([a-fA-F0-9])/([a-fA-F0-9])/?$ admin/load/loadsearch.php?type=$1&id=$2 [L] 
RewriteRule ^admin/load/loaddSearch/([a-fA-F0-9])/([a-fA-F0-9])/(.*)$ admin/load/loadsearch.php?type=$1&id=$2&lname=$3 [L]