ColdFusion 10,IIS 7.5和自定义404页面 [英] ColdFusion 10, IIS 7.5, and custom 404 page

查看:148
本文介绍了ColdFusion 10,IIS 7.5和自定义404页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用CF10和IIS 7.5设置自定义404错误。在CF10(和IIS 7)之前,您可以通过查询字符串获取不存在的网页的网址(例如,404; http://www.example.com/some/file.html )。但是,对于CF10和IIS 7.5,querystring返回404; http://www.example.com/ jakarta / isapi_redirect.dll 。有没有办法检索缺少的路径的实际URL,就像以前的版本?

I am attempting to setup a custom 404 error with CF10 and IIS 7.5. Previous to CF10 (and IIS 7), you can get the URL of the non-existent page via the querystring (e.g., 404;http://www.example.com/some/file.html) when the custom 404 page is processed. However, with CF10 and IIS 7.5, the querystring returns 404;http://www.example.com/jakarta/isapi_redirect.dll. Is there a way to retrieve the actual URL of the missing path, like in prior versions?

推荐答案

我有一个解决方法,发布到页面Miguel-F评论:

I have a workaround that I posted to the page Miguel-F commented on:

ColdFusion 10 + IIS:作为CFM文件的不存在的URL。在执行404网页后检索原始网址

这不漂亮,但它可以工作...

It's not pretty but it works...

这篇关于ColdFusion 10,IIS 7.5和自定义404页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆