复制以下的代码粘贴进去:
<?xml version="1.0" encoding="UTF-8"?><configuration><system.webServer><rewrite><rules><rule name="Canonical Host Name" stopProcessing="true"><match url="(.*)" /><conditions><add input="{HTTP_HOST}" pattern="^cnop/.net$" /></conditions><action type="Redirect" url="http://www.cnop.net/{R:1}" redirectType="Permanent" /></rule></rules></rewrite></system.webServer></configuration>
保存的时候把文件名设为“web.config”,放在网站根目录下面,重启下站点就可以了。
测试地址:http://tool.chinaz.com/pagestatus/default.aspx
出现如下说明成功:
附件下载:
https://www.cnop.net/uploadfile/2015/0807/20150807124243538.zip