0

我在 .htaccess 文件中有以下配置:

Options -Multiviews -Indexes +FollowSymLinks
RewriteEngine on
RewriteBase /coaster/CoasterInsider/
RewriteRule searchResults/keyword/(.*)/?$ index.php?page=searchResults&keyword=$1 [L,NC]
RewriteRule searchResults/keyword/(.*)/start/(.*)/?$ index.php?page=searchResults&keyword=$1&start=$2 [L,NC]

但是start=$2不匹配。例如: url is:localhost/coaster/CoasterInsider/searchResults/keyword/a/start/3/ 但是当我尝试echo $_GET['keyword']打印时a/start/3/,开始没有得到任何价值。

4

1 回答 1

1

请尝试颠倒最后两条规则的顺序。

于 2012-09-23T07:33:44.290 回答