网址:http://example.com/good_game/osmp/
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/([^/]+)/?$ /?service=$1&terminal=$2 [L,QSA]
我收到
Array ( [service] => good_game [terminal] => osmp )
没关系,但是
网址:http://example.com/good_game
或 http://example.com/good_game/
我需要
Array ( [service] => good_game)
它返回 404 not found