【问题标题】:Website displaying 'Default OaO frameset' as title [closed]网站显示“默认 OaO 框架集”作为标题
【发布时间】:2017-02-10 10:54:25
【问题描述】:

我最近将my website 上的.htaccess 文件修改为:

ErrorDocument 404 http://www.jamesthistlewood.co.uk/404.php

现在,每当我访问该网站 (http://www.jamesthistlewood.co.uk) 时,它都会出现标题为“默认 OaO 框架集”的 404 页面。我的 web.config 文件如下:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <defaultDocument enabled="true">
            <files>
                <clear />
                <add value="index.aspx" />
                <add value="index.asp" />
                <add value="index.htm" />
                <add value="index.html" />
                <add value="index.php" />
                <add value="home.aspx" />
                <add value="home.asp" />
                <add value="home.htm" />
                <add value="home.html" />
                <add value="home.php" />
                <add value="default.aspx" />
                <add value="default.asp" />
                <add value="default.htm" />
                <add value="default.html" />
                <add value="default.php" />
            </files>
        </defaultDocument>
        <security>
            <authentication>
                <basicAuthentication enabled="true" />
            </authentication>
        </security>
        <httpErrors errorMode="Custom">
            <remove statusCode="404" subStatusCode="-1" />
            <error statusCode="404" prefixLanguageFilePath="" path="/OaOInternal/DefaultWebs/sedoCurrent/Error404.aspx" responseMode="ExecuteURL" />
        </httpErrors>
    </system.webServer>
</configuration>

我由 1&1 主持。到目前为止,我已尝试删除 .htaccess 文件,但除了使主域仅显示标题为“默认 OaO 框架集”的空白屏幕之外,它没有任何效果。

非常感谢任何帮助 - 我不知道该怎么做。

【问题讨论】:

    标签: .htaccess web-config http-status-code-404 hosting


    【解决方案1】:

    我现在已经修好了,下面是我为将来需要它的人做的:

    我添加了这一行:

    DirectoryIndex index.php
    

    到我的网站空间根目录中的.htaccess 文件。这样,它将索引页面设置为index.php,以某种方式覆盖web.config 文件并在作为域名的默认页面时显示index.php

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-09-12
      • 2015-03-05
      • 1970-01-01
      • 2015-10-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多