resin下rewrite示例

  • Post author:
  • Post category:其他


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>



版权声明:本文为biexf原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。