原本有这样的rewrite:
<rule>
<from>^/([a-z]+)/?$</from>
<to type="forward">/xxxxx.do?id=$1</to>
</rule>如果输入http://www.xxxxx.com.cn/test/就会变成http://www.xxxxx.com.cn/xxxxx.do?id=test现在要求输入http://www.xxxxx.com.cn/test/?aaa=bbb&ccc=ddd
实则变为http://www.xxxxx.com.cn/xxxxx.do?id=test&aaa=bbb&ccc=ddd请问urlrewrite中的rule应该怎么写
<rule>
<from>^/([a-z]+)/?$</from>
<to type="forward">/xxxxx.do?id=$1</to>
</rule>如果输入http://www.xxxxx.com.cn/test/就会变成http://www.xxxxx.com.cn/xxxxx.do?id=test现在要求输入http://www.xxxxx.com.cn/test/?aaa=bbb&ccc=ddd
实则变为http://www.xxxxx.com.cn/xxxxx.do?id=test&aaa=bbb&ccc=ddd请问urlrewrite中的rule应该怎么写
解决方案 »
- 关于window.open页面跳转问题
- 明天面试,要考我一个网页的登录功能题,急救!!
- Sheet index (0) is out of range (0..-1) POI操作Excel错误
- 小菜的烦恼
- 熟悉sina里的pixviewer组件和JS语法的进,谢谢
- 为什么我的displaytag标签点下一页就报错
- struts 1.1 中,连接池对象只能在ACTION对象中使用马?
- 请问各位大哥一个问题!关于为了加快访问速度的问题!!
- 简单问题:我如何在更改〈select〉下拉选择框的选项时,让本页面刷新,或跳转页面?
- 如何安装 bdk?
- 老问题:文档预览问题。。。十天了,项目快完了,就是这个问题了,帮忙啊。。。。。。
- 信息搜索
var url = "http://www.xxxxx.com.cn/test/?aaa=bbb&ccc=ddd";if(url.indexOf("test/?") != -1) {
url = url.replace("test/?", "xxxx.do?id=test&");
}
else if(url.indexOf("test/") != -1) {
url = url.replace("test/", "xxxx.do?id=test");
}
<rule>
<from>^/([a-z]+)/?.$</from>
<to type="forward">/xxxxx.do?id=$1&$2</to>
</rule>第二种:
<rule>
<from>^/([a-z]+)/?</from>
<to type="forward">/xxxxx.do?id=$1&</to>
</rule>