我添加了一个apache重写规则来将静态静态url转换为php url,我将错过问号后的输出。
例如:
RewriteRule test /([^ /] +)/([^ /] +)/([^ /] +)48 / thread.php?tid = 123 [L]
但似乎每次我输入 http://www.exmple.com/new_sr/test/hi/1d62c59da779043b2f6bda467fdae41a/
我刚收到网址
/new_sr/48/thread.php
但我希望得到网址
48 / thread.php?TID = 123
“?tid = 123”被丢弃。
为什么呢?感谢。
答案 0 :(得分:0)
试试这个,
RewriteRule test/([^/]*)/([^/]*)/([^/]*) 48/thread.php?tid=123 [L]
顺便说一句,您可以在此链接中测试您的规则:http://martinmelin.se/rewrite-rule-tester/