我想在我的wordpress网站上使用https而不是http。该站点现在正在运行https,只有一个问题。
简短的事实,我过去的步骤。
现在问题来了。我的网站对每个页面都可以使用https,但是wordpress站点只为菜单生成http链接。网站有3个菜单,每个菜单都只有http菜单。为什么?Wordpress是如何生成这些链接的?
发布于 2015-09-16 04:01:08
您可以尝试使用这样的htaccess规则:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}发布于 2018-06-07 15:41:07
万一你还没搞清楚,我只是在最近遇到这个问题并发现了这个问题之后才这么做的。
在当前WP管理转到设置>一般。然后简单地在http之后添加s。

发布于 2015-09-15 13:18:12
根据您已经采取的操作,有两种可能的情况(假设您的菜单没有被插件定义):
- If this is the case, you will need to find the relevant template files in your active theme (or create a child theme) and edit them. The proper way of defining hard-coded links in this case (if they must be hard-coded) is to use template tag functions such as [`site_url()`](https://codex.wordpress.org/Function_Reference/site_url), which will automatically prefix links with the proper scheme and URL.
- If this is the case, you can head to `WordPress Admin --> Appearance --> Menus` and edit the custom links in each of your menu items.
https://stackoverflow.com/questions/32544382
复制相似问题