【发布时间】:2017-07-03 04:36:59
【问题描述】:
我正在搜索,但我做不到。
我有以下 .htacess
RewriteEngine on
# Rewrite request URL
# Input: index/VIDEO/
# Output: index.php?id=VIDEO
RewriteRule ^(\w+)/?$ index.php?id=$1
更改以下网址可以正常工作:
https://subdomain.domain.com/path/to/index.php?id=234556
到
https://subdomain.domain.com/path/to/234556
但是我添加了第二个参数(许可证),所以我需要重写以下 URL:
https://subdomain.domain.com/path/to/index.php?id=234556&license=23432532
到
https://subdomain.domain.com/path/to/234556/23432532
或者
https://subdomain.domain.com/path/to/234556&license=23432532
我一直在尝试多种方法在这里搜索,但我无法完成这项工作。
【问题讨论】:
标签: php apache .htaccess mod-rewrite parameters