Url rewriting 防止URL重写对静态文件的基础链接所做的更改

Url rewriting 防止URL重写对静态文件的基础链接所做的更改,url-rewriting,tuckey-urlrewrite-filter,Url Rewriting,Tuckey Urlrewrite Filter,我是塔奇的新手,所以我正在尝试这件事 在我的项目中,我得到了像index.cfm?action=management.start.home这样的URL。我想把它们重写为管理/start/home 所以我写了以下过滤器: <rule> <from>/management/start/home</from> <to type="redirect">/index.cfm?action=management.start.home</t

我是塔奇的新手,所以我正在尝试这件事

在我的项目中,我得到了像
index.cfm?action=management.start.home
这样的URL。我想把它们重写为
管理/start/home

所以我写了以下过滤器:

<rule>
    <from>/management/start/home</from>
    <to type="redirect">/index.cfm?action=management.start.home</to>
</rule>

我找不到信息来修复…

它更改的原因是链接是动态的。因此,我将
public/js/company/jquery.company.button.js
更改为
/public/js/company/jquery.company.button.js
,一切正常

public/js/company/jquery.company.button.js
management/start/public/js/company/jquery.company.button.js