多域名重定向到一个站点

2019-08-27 09:05:44 11428

ABC.com

www.landui.com

www.landui.com

ABC.cn

ABC.net

上面五个都重定向到

www.landui.com


IIS7以上可直接添加在web.config配置文件里面实现

   

 

           

                301-1 Redirect" stopProcessing="true">

               

               

                ABC.com$" />

               

                http://www.landui.comABC.com/{R:0}" redirectType="Permanent" />

               

         301-2 Redirect" stopProcessing="true">

               

               

                ABC.net$" />

               

                http://www.landui.comABC.com/{R:0}" redirectType="Permanent" />

         

        301-3 Redirect" stopProcessing="true">

               

               

                ABC.cn$" />

               

                http://www.landui.comABC.com/{R:0}" redirectType="Permanent" />

         

        301-4 Redirect" stopProcessing="true">

               

               

                www.ABC.net$" />

               

                http://www.landui.comABC.com/{R:0}" redirectType="Permanent" />

         

        301-5 Redirect" stopProcessing="true">

               

               

                www.ABCcn$" />

               

                http://www.landui.comABC.com/{R:0}" redirectType="Permanent" />

               

           

       

       http://www.landui.comABC.com" exactDestination="true" httpResponseStatus="Permanent" />

   



解析设置:

第1种实现方式:记录类型为A记录,记录值为IP地址 主机记录为@和WWW

第2种方式:如果买的是虚拟主机,一般在虚拟主机的具体信息上,可以查到别名,把服务商提供的这个别名做为记录值,记录类型为cname,主机记录为@和WWW,也可以实现


提交成功!非常感谢您的反馈,我们会继续努力做到更好!

这条文档是否有帮助解决问题?

非常抱歉未能帮助到您。为了给您提供更好的服务,我们很需要您进一步的反馈信息:

在文档使用中是否遇到以下问题:
XML 地图