那位师兄帮帮忙

那位师兄帮我把两个文件整合在一起。web.config[?]

一个301文件。

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

<configuration>

    <>
system.webServer[?][?][?][?]

        <rewrite>

            <rules>

<rule name="Redirect" stopProcessing="true">

                    <match url=".*" />

                    <conditions>

                        <add input="{HTTP_HOST}" pattern="^$" />
shishicaizc.com[?]

                    </conditions>

                    <action type="Redirect" url="{R:0}" redirectType="Permanent" />
http://www.shishicaizc.com/[?]

                </rule>

            </rules>

        </rewrite>

    </>
system.webServer[?][?][?][?]

 </configuration>

一个404文件

<configuration>

 <>
system.webServer[?][?][?][?]

   <httpErrors errorMode="DetailedLocalOnly">

      <remove statusCode="404" />

      <error statusCode="404" path="/" responseMode="ExecuteURL"  />
404.htm[?]

   </httpErrors>

 </>
system.webServer[?][?][?][?]

</configuration>

追加问题
关注问题 分享到微信 收藏
高飞 · 素材火

不太懂这个