【问题标题】:Get Page URL on 404 IIS Redirection (Custom Error Page in Classic ASP)获取有关 404 IIS 重定向的页面 URL(经典 ASP 中的自定义错误页面)
【发布时间】:2013-01-31 09:18:35
【问题描述】:

我已经在 404 错误代码上实现了 IIS 重定向,并为它创建了一个自定义错误页面。我的自定义错误页面是用经典的 asp 编写的(例如:FileNotFound.asp)。我需要在我的自定义错误页面中写入调用页面(不存在)的 URL。

【问题讨论】:

    标签: iis asp-classic http-status-code-404


    【解决方案1】:

    您需要以下内容:

    Request.ServerVariables (server_variable) 
    

    替换为:

    Request.ServerVariables (HTTP_REFERER) 
    

    应该可以。 w3Schools 上的文章:http://www.w3schools.com/asp/coll_servervariables.asp

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-06-19
      • 2011-02-24
      • 1970-01-01
      • 2015-03-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多