dylan_547218544的gravatar头像
dylan_547218544 2013-01-28 10:05:49

使用Urlrewrite技术实现Struts2+Hibernate3+Spring的项目的伪静态

<?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>

 


最代码官方编辑于2013-12-6 9:37:38


AXIN编辑于2014-2-22 23:03:47


打赏

文件名:Struts2伪静态实现.rar,文件大小:3424K 下载
  • /
      • /Struts2伪静态实现
          • /Struts2伪静态实现/Sturts2UrlReWrite
            • /Struts2伪静态实现/Sturts2UrlReWrite/.classpath
            • /Struts2伪静态实现/Sturts2UrlReWrite/.mymetadata
            • /Struts2伪静态实现/Sturts2UrlReWrite/.mystrutsdata
            • /Struts2伪静态实现/Sturts2UrlReWrite/.project
              • /Struts2伪静态实现/Sturts2UrlReWrite/.settings
                • /Struts2伪静态实现/Sturts2UrlReWrite/.settings/.jsdtscope
                • /Struts2伪静态实现/Sturts2UrlReWrite/.settings/com.genuitec.eclipse.j2eedt.core.prefs
                • /Struts2伪静态实现/Sturts2UrlReWrite/.settings/org.eclipse.jdt.core.prefs
                • /Struts2伪静态实现/Sturts2UrlReWrite/.settings/org.eclipse.wst.common.component
                • /Struts2伪静态实现/Sturts2UrlReWrite/.settings/org.eclipse.wst.common.project.facet.core.xml
                • /Struts2伪静态实现/Sturts2UrlReWrite/.settings/org.eclipse.wst.jsdt.ui.superType.container
文件名:urlrewrite.xml.java,文件大小:0K 下载
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友