urlrewrite-3.1.0.jar 流程(伪静态)

重写URL(伪静态)

1:http://blog.csdn.net/tegwy/article/details/4204460

2:http://pan.baidu.com/s/1bndicX5 (架包分享)

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>
</urlrewrite>

web.xml配置

<!-- 配置url重写,主要针对jsp页面 -->
	<filter>
		<filter-name>UrlRewriteFilter</filter-name>
		<filter-class>
			org.tuckey.web.filters.urlrewrite.UrlRewriteFilter
		</filter-class>
	</filter>
	<filter-mapping>
		<filter-name>UrlRewriteFilter</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>


你可能感兴趣的:(urlrewrite-3.1.0.jar 流程(伪静态))