wordpress - 我在我的网站 roundabout tech.com 上完成了 ssl。但是

标签 wordpress http ssl https

我在我的网站 roundabouttech.com 上做了 ssl。但问题是当我输入完整的“https://roundabouttech.com”时,它会以 https 打开。但是当我只输入“roundabouttech.com”时,它默认使用 http。我该如何解决这个问题。我的网站在 wordpress 中。

最佳答案

试试这个 htaccess 代码

# 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]
# Rewrite HTTP to HTTPS
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*) https://%{SERVER_NAME}/$1 [R,L]
</IfModule>
# END WordPress

关于wordpress - 我在我的网站 roundabout tech.com 上完成了 ssl。但是,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54860299/

相关文章:

RestSharp (monotouch) 中的 HTTP 缓存

ssl - 无法使用 Wireshark 解密 HTTPS 流量

php - wordpress 删除上传的文件

php - 我怎样才能让我的销售价格与正常价格有不同的颜色?

jquery - 如何在加载淡出效果时在网站主页上显示整页图像

http - 从中间件在 ASP.NET Core 中的 HttpResponse 上设置原因

javascript - 电子邮件正文中的多行文本

java - 在 Jboss AS 7.1.1 中安装 CA 证书

ssl - 使用 HTTP.sys SSL 绑定(bind)的客户端证书过期验证

wordpress - 如何让网站根据用户位置自动以某种语言打开?