使用Urlrewrite技术实现Struts2+Hibernate3+Spring的项目的伪静态
来源:互联网 发布:v9调色软件 编辑:程序博客网 时间:2024/05/22 13:11
小弟做了一个项目,现在SEO要求我将所有的页面实现伪静态,尝试了多种技术,决定用Urlrewrite技术,下面是我的urlrewrite.xml:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 3.1//EN"
"http://tuckey.org/res/dtds/urlrewrite3.1.dtd">
<urlrewrite>
<rule>
<from>^/index.html</from>
<to>/index.jsp</to>
</rule>
<rule>
<from>^/about_cepai/about_cepai.html</from>
<to>/about_cepai/about_cepai.jsp</to>
</rule>
<rule>
<from>^/results_show/show.html</from>
<to>/results_show/show.jsp</to>
</rule>
<rule>
<from>^/service/service_support.html</from>
<to>/service/service_support.jsp</to>
</rule>
<rule>
<from>^/application/applicationFactory.jsp.html</from>
<to>/application/applicationFactory.jsp.jsp</to>
</rule>
<rule>
<from>^/contect_us/contect_us.jsp.html</from>
<to>/contect_us/contect_us.jsp.jsp</to>
</rule>
<rule>
<from>^/meterpro/([0-9]+)_([0-9]+).html$</from>
<to>/meterpro?nid=$1&tid=$2</to>
</rule>
</urlrewrite>
有不带参数的页面都可以实现,像最下面的<from>^/meterpro/([0-9]+)_([0-9]+).html$</from><to>/meterpro?nid=$1&tid=$2</to>,带有参数的jsp页面始终无法实现伪静态。希望各位牛人指点迷津。
- 使用Urlrewrite技术实现Struts2+Hibernate3+Spring的项目的伪静态
- 使用struts2 urlrewrite 实现页面伪静态
- 伪静态urlrewrite的使用
- URLRewrite伪静态实现-url重写技术
- URLRewrite伪静态实现-url重写技术
- UrlRewrite实现伪静态
- 使用URLRewrite 实现URL伪静态化
- 使用UrlRewrite实现URL伪静态化
- 使用UrlRewrite实现url伪静态化
- Java中urlrewrite伪静态的使用总结
- Struts2+Urlrewrite实现伪静态化 demo中介绍了三种情况的配置,下载即可运行。
- urlrewrite(伪静态技术运用)
- UrlRewrite实现url伪静态
- 使用URLRewrite 实现URL伪静态化1
- 使用URLRewrite 实现URL伪静态化2
- 1使用URLRewrite实现url地址伪静态化(转载)
- jsp使用URLRewrite实现url地址伪静态化
- Asp.net中配置Web.config 的UrlRewrite实现伪静态页面的代码
- 思维导图软件 Mindjet MindManager 的入门视频
- 性能分析
- cvsnt-2.5.01.1976.msi破解版
- _countof()
- 20130205-说说C语言中的Static(一)
- 使用Urlrewrite技术实现Struts2+Hibernate3+Spring的项目的伪静态
- Xcode 4.1/4.2/4.3/4.4/4.5 + iOS 5.1.1免证书(iDP)开发+真机调试+生成IPA全攻略
- 5个jQuery的备选轻量级移动客户端开发(Mobile development)类库
- H.264码流结构解析
- spring引入的jar包作用
- 鼠标点击某个div以外的地方就隐藏该div
- iOS:iOS 6.x越狱(evasi0n)
- SQL Server 2012中的ColumnStore Index尝试
- exynos电源管理与功耗实例分析