【发布时间】:2014-03-26 18:17:38
【问题描述】:
我正在使用 Tuckey 删除带有以下规则的 URL .xhtml 扩展名:
<rule>
<from>^/?([a-z-]+)/$</from>
<to>/$1.xhtml</to>
</rule>
<rule>
<from>^/?([a-z-]+)$</from>
<to>/$1.xhtml</to>
</rule>
所以 /page/ 和 /page 被映射到 /page.xthml
但是,如果我有 /directory/page/ 这不会映射到 /directory/page.xhtml。
【问题讨论】:
标签: regex rewrite tuckey-urlrewrite-filter