【发布时间】:2011-11-16 16:44:35
【问题描述】:
让我们以this question 之类的为例。所以,我正在寻找重写:
http://www.example.com/test到
http://www.example.com/page.php?v=test
与:
RewriteRule ^(.*)$ page.php?v=$1 [L]
这会将我带到页面http://www.example.com/test/?v=test
为什么它不在http://www.example.com/test 上没有尾部斜杠和查询字符串。
PS:我在 Windows 上使用 WampServer
【问题讨论】:
标签: apache .htaccess mod-rewrite url-rewriting query-string