resin下rewrite示例

这篇博客详细介绍了如何在Resin应用服务器中使用<rewrite-dispatch>配置进行URL重写,包括SEO优化的示例,如明星信息、故事详情、热门排行等页面的重定向规则。通过这些规则,可以实现更加友好的URL结构,提高网站的搜索引擎友好性和用户体验。
摘要由CSDN通过智能技术生成

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&a

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值