动态查询字符串位置所需的 Apache Mod-Rewrite 规则条件
我有一个类似 http://localhost/test.html?param1=a¶m2=b¶m3=c
的 URL 我想要重写条件来检查查询参数 param1、param2 和 param3 可以按任何顺序..可能如下所示
http://localhost/test.html?param3=a¶m2=b¶m1=c
http://localhost/test.html?param2=a¶m3=b¶m1=c
http://localhost/test.html?param3=a¶m1=b¶m2=c
请帮助我如何重写此查询字符串的条件..我可以用 [OR] 编写所有组合条件,但有没有最好的方法来实现这一目标?
谢谢
I have an URL like http://localhost/test.html?param1=a¶m2=b¶m3=c
I want the rewrite condition to check query parameters param1,param2 and param3 can be in any order..it could be like below
http://localhost/test.html?param3=a¶m2=b¶m1=c
http://localhost/test.html?param2=a¶m3=b¶m1=c
http://localhost/test.html?param3=a¶m1=b¶m2=c
Please help me how can i rewrite conditions for this Query String .. I can write all the combination with [OR] condition but is there any best way to achive this?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
像这样写:
Write it like this: