略過並前往主要內容
致電我們
服務專線和服務時間
預約回電

無須線上等候,提交預約我們將儘快回電。

預約回電
說明中心

瀏覽我們線上說明資源

說明

Windows Hosting (Plesk) 說明

Redirect my website to HTTPS in Windows Hosting

If you have a secure certificate (SSL) on your website, you can automatically redirect visitors to the secured (HTTPS) version of your website to make sure their information is protected. You need to use the Plesk File Manager to add some code to the web.config file in your Windows Hosting account.

Warning: The code samples we provide below do not constitute a complete web.config file. Do not replace your existing web.config file with the code we provide. Before changing your web.config file, we recommend creating a backup.
  1. Go to your GoDaddy product page.
  2. Select Web Hosting, and next to the Windows Hosting account you want to use select Manage.
  3. In the account Dashboard, select Plesk Admin.
  4. In the Plesk Websites & Domains page, for the domain you want to use, select File Manager.

    Note: If you don't see any icons to select, in the center of the page select Show More and then select File Manager.

  5. In the File Manager list, select web.config. The web.config file opens in a code editor.
  6. After the opening system.webServer tag, and before the closing system.webServer tag, add the next code snippet. Be careful not to delete any of the existing code.

    <rewrite>
        <rules>
    	<rule name="HTTP to HTTPS redirect" stopProcessing="true"> 
    	    <match url="(.*)" /> 
    	    <conditions> 
                    <add input="{HTTPS}" pattern="off" ignoreCase="true" />
    	    </conditions> 
    	    <action type="Redirect" redirectType="Permanent" url="https://{HTTP_HOST}/{R:1}" />
            </rule>   
        </rules>
    </rewrite>
    
  7. At the bottom of the code editor, select OK.

More info

相關社群

titusd's Avatar
"Redirect my website to HTTPS in Plesk/Windows"

1 回覆

Last posted almost 3 years ago.

jseg's Avatar
Redirect website to HTTPS in cPanel/Linux

1 回覆

Last posted almost 3 years ago.

nt123's Avatar
https to https redirect

3 回覆

Last posted almost 4 years ago.

IMC_DI's Avatar
Redirect https://www to https://

2 回覆

Last posted over 1 year ago.

找不到主題嗎?搜尋社群