201509月30
虚拟主机配置web.config文件实现301重定向
在IIS7中web.config文件的功能类似apache服务器的.htaccess,打开编辑根目录的web.config配置文件:把下面的代码复制进入
<rule name="WWW Redirect" stopProcessing="true"> <match url=".*" /> <conditions> <add input="{HTTP_HOST}" pattern="^wyxseo.com$" /> </conditions> <action type="Redirect" url="http://www.wyxseo.com/{R:0}" redirectType="Permanent" /> </rule>
文章作者:admin
本文地址:http://www.wyxseo.com/279.html
版权所有 © 转载时必须以链接形式注明作者和原始出处!