获取网址的最后一部分(.htaccess)

时间:2020-02-01 02:15:07

标签: apache .htaccess

我想将url的最后部分作为GET请求(使用htaccess RewriteRule),如下所示:

http://localhost/services/rest/users/availability/detailed/Player

至:

http://localhost/services/rest/users/availability/detailed?name=player

我尝试过:

RewriteRule ^detailed/(.*)$ index.php?name=$1

0 个答案:

没有答案