自动将 HTTP 重定向到 HTTPS
在您的网站上安装 SSL 证书后,需要将访客重定向到您网站的安全 (HTTPS) 版本。为您的网站选择托管方案:
- Web Hosting (cPanel): Redirect my website to HTTPS using Web Hosting (cPanel)
- 使用非 WordPress 网站的 Plesk 主机:使用 web.config 重定向到 HTTPS
- 使用 WordPress 网站的 Plesk 主机:使用 WordPress 控制面板和 web.config 重定向到 HTTPS
Note:
- These instructions don't apply to Managed WordPress accounts with an SSL certificate. The HTTPS redirect is automatically enabled after the SSL certificate install finishes on a Managed WordPress account.
- If we don't have a guide for your server, check your server documentation to learn how to redirect your website traffic.