首页 > 问答 > 网页浏览正常,但所有状态码返回的都是302,怎么解决?

网页浏览正常,但所有状态码返回的都是302,怎么解决?

[导读]:web.config文件有没有错,帮忙看下 ?xml version="1.0" encoding="UTF-8"? configuration     system.webServer         defaultDocument             files                 clear /    ...

web.config文件有没有错,帮忙看下

<?xml version="1.0" encoding="UTF-8"?>

<configuration>

    <system.webServer>

        <defaultDocument>

            <files>

                <clear />

                <add value="index.html" />

                <add value="index.php" />

                <add value="Default.htm" />

                <add value="Default.asp" />

                <add value="index.htm" />

                <add value="iisstart.htm" />

                <add value="default.aspx" />

            </files>

        </defaultDocument>

        <httpErrors>

            <remove statusCode="404" subStatusCode="-1" />

            <error statusCode="404" prefixLanguageFilePath="" path="/404/index.html" responseMode="ExecuteURL" />

        </httpErrors>

        <httpRedirect enabled="false" destination="" exactDestination="false" childOnly="false" httpResponseStatus="Found" />

    </system.webServer>

</configuration>

本文来自投稿,不代表微盟圈立场,如若转载,请注明出处:https://www.vm7.com/a/ask/46075.html