gpt4 book ai didi

wordpress - http 运行良好。但是 https 不工作并重定向到其他域

转载 作者:太空宇宙 更新时间:2023-11-03 13:50:33 25 4
gpt4 key购买 nike

我有域和子域。我已经为我的域购买并应用了 SSL 证书。无论如何,我的子域之一无法使用 https://。但它与 http://完美配合。

我不知道为什么。我怀疑 htaccess 文件。但这显然是好的。你能帮我解决这个问题吗?

我已经检查了子域的在线 SSL 验证器。子域仅是受信任的站点。但不适用于 https://

htacess:

Satisfy Any
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On

RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

该站点的技术是WORDPRESS。SSL 来自 GoDaddy

请帮帮我。

最佳答案

我遇到了类似的情况,这就是我所做的:

转到仪表板 -> 设置 -> 常规并执行以下操作:

请注意上面是https不是http

此外,我还安装了这个名为:
轻松 HTTPS (SSL) 重定向 - https://wordpress.org/plugins/https-redirection/

安装此插件后,进入此插件的设置并执行以下操作:

  • 选中启用自动重定向到“HTTPS”
  • 检查 Apply HTTPS redirection on 根据您需要应用的位置
  • 选中强制资源使用 HTTPS URL

Note from the developers: If you're using caching plugins similar to W3 Total Cache or WP Super Cache, you need to clear their cache after you enable or disable automatic redirection option. Failing to do so may result in mixed content warning from browser.

关于wordpress - http 运行良好。但是 https 不工作并重定向到其他域,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48166295/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com