网站显示'默认OaO框架集'如题

时间:2016-10-02 09:28:25

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

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

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

现在,每当我访问网站(http://www.jamesthistlewood.co.uk)时,它就会出现标题为' Default OaO frameset'的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&amp; 1主持的。到目前为止,我已尝试删除.htaccess文件,但除了使主域名显示为标题为“默认OaO框架集”的空白屏幕之外,它没有任何效果。

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

1 个答案:

答案 0 :(得分:0)

我现在已经修好了,所以这就是我为未来需要它的人做的事情:

我添加了这一行:

DirectoryIndex index.php

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

相关问题