我UrlRewriteFilter
用来转换example.com
为www.example.com
<urlrewrite>
<rule>
<name>Canonical Hostnames</name>
<condition name="host" operator="notequal">^example.com</condition>
<condition name="host" operator="notequal">^$</condition>
<from>^/(.*)</from>
<to type="redirect" last="true">http://www.example.com/$1</to>
</rule>
</urlrewrite>
当我浏览浏览example.com
器显示This webpage has a redirect loop