【发布时间】:2013-03-06 23:10:43
【问题描述】:
我明白了:
HTTP Status 404 - /admin/index.cfm/event/main.welcome
type Status report
message /admin/index.cfm/event/main.welcome
description The requested resource is not available.
Apache Tomcat/7.0.37
但是当我去的时候它工作正常:
/admin/index.cfm?event=main.welcome
或
/admin/event/main.welcome (thanks to htaccess)
但由于这是使用 MOD_CFML,我无法使用 HTACCESS 覆盖其中包含 .cfm 的网址。
我在网络上的任何地方都找不到这个... :-/
【问题讨论】:
-
您必须将 /admin/index.cfm/* 添加到 tomcat 中的 ses url 映射中,除非有人知道更通用的方法来使这些工作。 stackoverflow.com/questions/12204536/…
-
是的,这很好用......但当然对于多个项目来说绝对不是理想的......如果您将此添加为解决方案答案,我会批准它。它确实解决了问题,但如果有一个“MOD_CFML”或 Apache 解决方案可以更灵活地将这些重写存储在每个项目的代码库中,我会喜欢它。