【问题标题】:Where is this redirect being set?这个重定向在哪里设置?
【发布时间】:2012-07-12 19:31:16
【问题描述】:

我试图找出我正在管理的网站在哪里设置了一些重定向。它是一个 IIS 服务器,应用程序主要是冷融合。我确信 IIS 设置没有指定任何重定向。我发现没有冷融合设置允许来自服务器端的重定向。冷融合文件中没有会导致此重定向的“”或标头更改。最后,任何 .htaccess 文件中都没有重定向。设置 301 重定向还有哪些其他可能的原因/位置?

谢谢!

【问题讨论】:

    标签: iis redirect coldfusion web


    【解决方案1】:

    也可以使用 cfheader 进行重定向:

    <cfheader statuscode="301" statustext="Moved permanently" />
    <cfheader name="location" value="http://www.mysite.com/new-location-for-content/" />
    

    或者也可以有一个 Javascript 重定向,例如:

    document.location='http://www.mysite.com/new-location-for-content/';
    

    或者可能有一点ASP等等等等。

    更多例子在这里http://www.somacon.com/p145.php

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-09-17
      • 2016-09-23
      • 1970-01-01
      • 1970-01-01
      • 2022-07-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多