在网上看到不少网站使用,十分羡慕,但是火候欠佳,特意请教大神们,感激不尽!
ssh2开发的,先上urlrewrite.xml里的配置:
<urlrewrite>
<rule>
<note>WebRoot下的文件改成*.html</note>
<from>/([A-Za-z0-9]+).html</from>
<to type="forward">/$1.jsp</to>
</rule>
</urlrewrite>
以上都可以跳转到相应的jsp页面,但是我想跳到的是action并且传有参数。
例如:点击topic-168.html会转到topicAction_detail?id=168,尝试不少,但是就报
HTTP Status 404 - /demo/topicAction_detail
type Status report
message /demo/topicAction_detail
description The requested resource is not available.
怎么回事?求解