略過並前往主要內容
致電我們
  • 香港 服務時間:9:00~18:00 周一至周五3018 8600
服務專線和服務時間
預約回電

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

預約回電
說明中心

瀏覽我們線上說明資源

說明

Windows Hosting (Plesk) 說明

Redirect my WordPress website to HTTPS for Plesk hosting

If you have a secure certificate (SSL) on your WordPress website, you can automatically redirect visitors to the secured (HTTPS) version of your website to make sure their information is protected.

Note: Several plug-ins are available for WordPress that can redirect your URL automatically after you have installed your SSL certificate. For help with WordPress plugins, see wp.org

How you redirect traffic depends on the type of hosting you have.

WordPress installed on Plesk/Windows hosting

  1. Log in to your WordPress admin panel.
  2. Click Settings and then General.
  3. Change your WordPress URL and Site URL from http://coolexample.com to https://coolexample.com and click Save Changes.
  4. Create a web.config file in your httpdocs folder
  5. Insert the code listed below into your web.config file and save the file.
    <configuration> <system.webserver> <rewrite> <rules> <clear> <rule name="Redirect to https" stopProcessing="true"> <match url="(.*)"> <conditions> <add input="{HTTPS}" pattern="off" ignoreCase="true"> </add></conditions> <action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent"> </action></match></rule> <rule name="Main Rule" stopProcessing="true"> <match url=".*"> <conditions logicalGrouping="MatchAll"> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"> </add></add></conditions> <action type="Rewrite" url="index.php/{R:0}"> </action></match></rule> </clear></rules> </rewrite> </system.webserver> </configuration>

    More info