resin下rewrite示例

resin-web.xml

 

<rewrite-dispatch>

<!-- star seo -->

<forward regexp='/([/w]+).htm$' target='/star.jsp?pinyin=$1'/>

<!-- star_story seo -->

<forward regexp='/story_([0-9]+).html' target='/star_story.jsp?id=$1'/>

<!-- star_top seo -->

<forward regexp='/top_([0-9]+)type_([0-9]+)val_([0-9a-z]+).html' target='/star_top.jsp?id=$1&amp;type=$2&amp;val=$3'/>

<!-- star_top seo -->

<forward regexp='/top.html' target='/star_top.jsp'/>

<!-- star_top seo(search) -->

<forward regexp='/([0-9]+)_a([0-9]+)t([0-9]+)c([0-9]+)j([0-9]+)s([0-9]+)id([0-9]+).html' target='/star_top.jsp?type=$1&amp;area=$2&amp;team=$3&amp;c=$4&amp;job=$5&amp;sex=$6&amp;id=$7'/>

<!-- star_pic seo -->

<forward regexp='/pic_([0-9]+)pageNo_([0-9]+).html' target='/star_pic.jsp?id=$1&amp;pageNo=$2'/>

</rewrite-dispatch>

阅读更多
文章标签: search c
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭