到目前为止采取的步骤
来自 https://cloud.google.com/appengine/docs/flexible/php/securing-custom-domains-with-ssl
- 我有一个自定义域。
- 我已验证已提供托管证书
- 我已自动升级到托管 SSL 证书。感谢谷歌
- 我创建了一个强制使用 SSL 的 htaccess
- 运行
gcloud app deploy
后,我的网站转到了 http 而不是 https。
最佳答案
你的 site_url 常量是如何在你的 wp-config.php 中定义的?
您可能还需要安装 Force SSL 或 Simple SSL 插件。并在你的 wp-config.php 中定义相应的常量。
关于php - 如何在 Google App Engine 上强制使用 SSL Wordpress,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47600132/