"/>

腕能小象

IIS服务器设置域名301重定向

象总
  • IIS服务器设置域名301重定向方法:将以下代码放在网站根目录的web.config文件中即可

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="IIS_301" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^wanxx.top$" />
</conditions>
<action type="Redirect" url="http://www.wanxx.top/{R:0}"
redirectType="Permanent" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
说点什么吧
  • 全部评论(0
    还没有评论,快来抢沙发吧!

上一篇:织梦tag静态化插件

下一篇:【精选】seo优化经验