gpt4 book ai didi

html - 默认为 Coldfusion 页面

转载 作者:太空宇宙 更新时间:2023-11-04 13:34:45 25 4
gpt4 key购买 nike

我有两个文件:index.cfm 和 index.html

我希望用户默认转到 index.cfm,而 index.html 仅在 ColdFusion 服务器关闭时使用(修复此问题不在我的控制范围内)。悬停用户默认点击 index.html,是否可以更改此设置?

最佳答案

Randy 的回答是正确的,我想补充一点,如果您使用 apache 或 IIS,您可以针对服务器 500 系列错误并在您的配置文件中创建自定义指令。

web.config 示例:

<error statusCode="500" path="/index.html" responseMode="ExecuteURL" />

带有 AllowOverride 的 Apache 示例,您的覆盖如下所示:

ErrorDocument 500 http://example.com/index.html

关于html - 默认为 Coldfusion 页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24297494/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com