如何在www.domain.com上重定向我的网站 [英] How can Redirect My website in www.domain.com

查看:93
本文介绍了如何在www.domain.com上重定向我的网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此代码可以键入但不能重新编号



 <   system.webserver  >  
< 重写 >
< ; 规则 >
< rule name = 将domain.com重定向到www.briefsofttechnologies.com HTTP patternSyntax = ECMAScript 停止处理 = true >
< 匹配 url = 。* / >
< 条件 >
< add 输入 = {HTTP_HOST} < span class =code-attribute> pattern = ^ briefsofttechnologies.com $ / >
< 添加 输入 = {HTTPS} pattern = off < span class =code-keyword> / >
< / conditions >
< action type = 重定向 url = http://www.briefsofttechnologies.com/{R:0}\" redirectType < span class =code-keyword> = 永久 appendQueryString = true / >
< / rule >
< rule 名称 = 将domain.com重定向到www.briefsofttechnologies.com HTTPS patternSyntax = ECMAScript stopProcessing = true >
< 匹配 url = 。* / >
< 条件 > ;
< add 输入 = {HTTP_HOST} pattern = ^ briefsofttechnologies.com $ / >
< add 输入 = {HTTPS} 模式 = on / >
< / conditions >
< action type = 重定向 url = https://www.briefsofttechnologies.com/ {R:0} redirectType = < span class =code-keyword>永久 appendQueryString = true / >
< < span class =code-leadattribute> / rule >
< / rules >
< / rewrite >
< ; / system.webserver >

解决方案

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


/ >
< add 输入 = {HTTPS} pattern = on / >
< / conditions >
< action 类型 = 重定向 url = https:// www .briefsofttechnologies.com / {R:0} redirectType = 永久 appendQueryString = true / >
< / rule >
< / rules >
< / 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[^]


这篇关于如何在www.domain.com上重定向我的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆