Htaccess重写URL规则返回空参数

时间:2015-10-24 09:42:52

标签: apache .htaccess mod-rewrite

htaccess:

Options +FollowSymLinks
RewriteEngine on

#RewriteBase /asmi/

#---------package-details
RewriteRule ^package-details/(.*)/$ package-details.php?pckName=$1  
RewriteRule ^package-details/(.*)$ package-details.php?pckName=$1 

我的网址:

http://domain.com/asmi/package-details/Total-SMS-Alert/

我无法获得$ _REQUEST [' pckName']。

0 个答案:

没有答案