> 文章列表 > 服务器上https跳转到http的301怎么设置??

服务器上https跳转到http的301怎么设置??

服务器上https跳转到http的301怎么设置??

服务器上https跳转到http的301怎么设置??

问:服务器上https跳转到http的301怎么设置??,服务器上https跳转到http的301怎么设置??

答:您好,是http跳转到https吗?具体请参考一下https://www.west.cn/faq/list.asp?unid=2424 ,非常感谢您长期对我司的支持!

问:https跳转到http啊,建站助手安装的网站,伪静态名是哪个?web.config??还是.htaccess????

答:您好,助手创建的网站伪静态是使用web.config,非常感谢您长期对我司的支持!

问:web.config 里

https跳转到http的代码是什么?

答:您好,默认一般是http 跳转到 https  

 请您提供下域名,我司查看下 ,非常感谢您长期对我司的支持!

问:web.config 里

https跳转到http的代码是什么?

 

能正面回答下我的问题吗?

答:您好,

因为默认是 http 跳转到https , 但是如果反过来,为了准确性,是需要测试下代码的。

以下代码,您可以测试下  ,非常感谢您长期对我司的支持!

<?xml version="1.0" encoding="UTF-8"?><configuration> <system.webServer>        <rewrite>            <rules>               <rule name="301" stopProcessing="true">                    <match url="^(.*)$" ignoreCase="false" />                    <conditions logicalGrouping="MatchAll">                                              <add input="{HTTPS}" pattern="^on$" />                    </conditions>                    <action type="Redirect" url="http://www.abc.com/{R:1}" redirectType="Permanent" />               </rule>            </rules>        </rewrite>    </system.webServer> </configuration>