云服务器

IIS7.5通过web.config设置301重定向

在合适位置添加如下代码,地址记得根据自己实际情况进行修改

<rewrite>
  <rules>
     <rule name="301-landui.com" stopProcessing="true">
     <match url=".*" />
      <conditions>
             <add input="{HTTP_HOST}" pattern="^landui.com$" />
      </conditions>
<action type="Redirect" url="http://www.landui.com/{R:0}" 
redirectType="Permanent" />
     </rule>
   </rules>
</rewrite>


提交成功!非常感谢您的反馈,我们会继续努力做到更好!

这条文档是否有帮助解决问题?

非常抱歉未能帮助到您。为了给您提供更好的服务,我们很需要您进一步的反馈信息:

在文档使用中是否遇到以下问题: