I have the following configuration in .htaccess file:
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]
But start=$2
is not matching. example: url is: localhost/coaster/CoasterInsider/searchResults/keyword/a/start/3/
But when I try to echo $_GET['keyword']
that's printing a/start/3/
and start is not getting any value.
请尝试颠倒最后两个规则的顺序。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.