且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在www.domain.com上重定向我的网站

更新时间:2023-02-26 11:16:37

/ >
< add 输入 = {HTTPS} pattern = off / >
< / conditions >
< action type = 重定向 url = http://www.briefsofttechnologies.com/ {R:0} redirectType = 永久 appendQueryString = true / >
< / rule >
< 规则 名称 = 将domain.com重定向到www.briefsofttechnologies.com HTTPS patternSyntax = ECMAScript stopProcessing = true >
< 匹配 url = 。* / >
&lt ; 条件 >
< add 输入 = {HTTP_HOST} pattern = ^ briefsofttechnologies.com


/ >
< add 输入 = {HTTPS} pattern = on / >
< / conditions >
< action 类型 = 重定向 url = https:// www .briefsofttechnologies.com / {R:0} redirectType = 永久 appendQueryString = true / >
< / rule >
< / rules >
< an> / rewrite >
< / system.webserver >


可能是以下链接可以帮助你。



http://msdn.microsoft.com/en-us/library/540y83hx%28v=vs.100%29.aspx [ ^ ]

This code can be typed but not redirct

<system.webserver>
    <rewrite>
      <rules>
        <rule name="Redirect domain.com to www.briefsofttechnologies.com HTTP" patternSyntax="ECMAScript" stopProcessing="true">
          <match url=".*" />
          <conditions>
            <add input="{HTTP_HOST}" pattern="^briefsofttechnologies.com$" />
            <add input="{HTTPS}" pattern="off" />
          </conditions>
          <action type="Redirect" url="http://www.briefsofttechnologies.com/{R:0}" redirectType="Permanent" appendQueryString="true"/>
        </rule>
        <rule name="Redirect domain.com to www.briefsofttechnologies.com HTTPS" patternSyntax="ECMAScript" stopProcessing="true">
          <match url=".*" />
          <conditions>
            <add input="{HTTP_HOST}" pattern="^briefsofttechnologies.com$" />
            <add input="{HTTPS}" pattern="on" />
          </conditions>
          <action type="Redirect" url="https://www.briefsofttechnologies.com/{R:0}" redirectType="Permanent" appendQueryString="true"/>
        </rule>
      </rules>
    </rewrite>
  </system.webserver>

" /> <add input="{HTTPS}" pattern="off" /> </conditions> <action type="Redirect" url="http://www.briefsofttechnologies.com/{R:0}" redirectType="Permanent" appendQueryString="true"/> </rule> <rule name="Redirect domain.com to www.briefsofttechnologies.com HTTPS" patternSyntax="ECMAScript" stopProcessing="true"> <match url=".*" /> <conditions> <add input="{HTTP_HOST}" pattern="^briefsofttechnologies.com


" /> <add input="{HTTPS}" pattern="on" /> </conditions> <action type="Redirect" url="https://www.briefsofttechnologies.com/{R:0}" redirectType="Permanent" appendQueryString="true"/> </rule> </rules> </rewrite> </system.webserver>


may be the below link helps you.

http://msdn.microsoft.com/en-us/library/540y83hx%28v=vs.100%29.aspx[^]