在工程的warWEB-INF目录下新建一个Url重写配置文件:urlrewrite.xml
<?xml version="1.0" encoding="utf-8"?>
- <!DOCTYPE urlrewrite PUBLIC "-//tuckey//DTD UrlRewrite 4.0//EN"
- ".tuckey/res/dtds/urlrewrite4.0.dtd">
- <urlrewrite>
- <rule enabled="true" match-type="regex">
- <note>UrlRewrite</note>
- <condition type="request-filename" operator="notfile" name="notfile" next="and"/>
- <condition type="request-filename" operator="notdir" name="notdir" next="and"/>
- <from>/(.*)</