问:FTP(上传)用户名:**********
图片上的写法是不是有问题啊,我的web.config301重定向,由不带www转到带www的写法是不是正确的
答:您好,
请再web.config添加以下规则
<rule name="301Redirect" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAny">
<add input="{HTTP_HOST}" pattern="^kr-cy.com$" />
</conditions>
<action type="Redirect" url="http://www.kr-cy.com/{R:0}" redirectType="Permanent" />
</rule>
,非常感谢您长期对我司的支持!
问:如果我要把kr-cy.com转到www.kr-cy.com是不是应该向下面这样写
<rule name="301Redirect" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAny">
<add input="{HTTP_HOST}" pattern="^kr-cy.com$" />
</conditions>
<action type="Redirect" url="http://www.kr-cy.com/{R:0}" redirectType="Permanent" />
</rule>
答:您好,
同理
<rule name="301Redirect" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAny">
<add input="{HTTP_HOST}" pattern="^kr-cy.com$" />
</conditions>
<action type="Redirect" url="http://www.kr-cy.com/{R:0}" redirectType="Permanent" />
</rule>
具体请参考http://faq.myhost.net/faq/listagent.asp?unid=805 教程,非常感谢您长期对我司的支持!