問:我虛擬機IIS的,配置了https,首頁打不開,子頁能打開、我用了兩條thinkphp的一條 規則和https規則打開首頁提示301定向次數過多http://www.shuruixin.com 首頁就提示定向過多https://www.shuruixin.com/medical/product/cate/id/1.html<?xml version="1.0" encoding="UTF-8"?><configuration>    <system.webServer>        <rewrite>            <rules>                <rule name="ThinkPHP_NiPaiYi" stopProcessing="true">                    <match url="^(.*)$" ignoreCase="false" />                    <conditions logicalGrouping="MatchAll">                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />                        <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />                    </conditions>                    <action type="Rewrite" url="index.php/{R:1}" appendQueryString="true" />                </rule>                <rule name="redirect to https" stopProcessing="true">                    <match url="(.*)" />                    <conditions>                        <add input="{HTTPS}" pattern="^OFF$" />                        <add input="{HTTPS_HOST}" pattern="^(localhost)" negate="true" />                    </conditions>                    <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="SeeOther" />                </rule>                             </rules>        </rewrite>    </system.webServer></configuration>
,https首頁提示301定向次數過多

答:您好,虛擬主機設置301跳轉https,請參考http://www.shinetop.cn/faq/list.asp?unid=1419 
請使用

<rule name="301" stopProcessing="true">
                    <match url="^(.*)$" ignoreCase="false" />
                    <conditions logicalGrouping="MatchAll">
                        <add input="{HTTP_FROM_HTTPS}" pattern="^on$" negate="true" />
                    </conditions>
                    <action type="Redirect" url="https://www.abc.com/{R:1}" redirectType="Permanent" />
               </rule>

 進行跳轉即可。
非常感謝您長期對我司的支持!

更多關于云服務器域名注冊,虛擬主機的問題,請訪問三五互聯官網:www.shinetop.cn
贊(0)
聲明:本網站發布的內容(圖片、視頻和文字)以原創、轉載和分享網絡內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。郵箱:3140448839@qq.com。本站原創內容未經允許不得轉載,或轉載時需注明出處:三五互聯知識庫 » https首頁提示301定向次數過多

登錄

找回密碼

注冊