我正在尝试将Wordpress博客的根网址从http://example.com更改为https://example.com。
为此,我转储了我的数据库并搜索并将http替换为https
sed -i "s/http:\/\/example.com/https:\/\/example.com/g" dump.sql
然后重新加载我的数据库
我还检查了Wordpress根文件夹,但没有包含http://example.com
的文件grep -nr "http://example.com".
问题是仍有一些使用http的插件,例如:sitepress-multilingual-cms和AMP
以下是我在控制台中遇到的一些错误
Blocked loading mixed active content “http://example.com/wp-content/plugins/sitepress-multilingual-cms/res/css/dialog.css?ver=3.8.4”[Learn More] admin.php
Blocked loading mixed active content “http://example.com/wp-content/plugins/sitepress-multilingual-cms/res/css/otgs-ico.css?ver=3.8.4”[Learn More] admin.php
Blocked loading mixed active content “http://example.com/wp-content/plugins/sitepress-multilingual-cms/res/css/taxonomy-translation.css?ver=3.8.4”[Learn More] admin.php
Blocked loading mixed active content “http://example.com/wp-content/plugins/sitepress-multilingual-cms/res/js/scripts.js?ver=3.8.4”[Learn More] admin.php
Blocked loading mixed active content “http://example.com/wp-content/plugins/sitepress-multilingual-cms/res/js/otgs-notices.js?ver=4.8.3”[Learn More] admin.php
Blocked loading mixed active content “http://example.com/wp-content/plugins/accelerated-mobile-pages/includes/admin-script.js?ver=0.9.67.0”[Learn More] admin.php
Blocked loading mixed active content “http://example.com/wp-content/plugins/sitepress-multilingual-cms/res/js/icl-admin-notifier.js?ver=3.8.4”[Learn More]
[...]
如果数据库和文件中都没有提到http://example.com,为什么这些插件仍在http ??下运行?
感谢您的帮助!