問:服務器上https跳轉到http的301怎么設置??,服務器上https跳轉到http的301怎么設置??
答:您好,是http跳轉到https嗎?具體請參考一下http://ps-sw.cn/faq/list.asp?unid=2424 ,非常感謝您長期對我司的支持!
問:https跳轉到http啊,建站助手安裝的網站,偽靜態(tài)名是哪個?web.config??還是.htaccess????
答:您好,助手創(chuàng)建的網站偽靜態(tài)是使用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>