我收到了很多警告,比如:
Mixed Content: The page at \'https://www.example.in/\' was loaded over HTTPS, but requested an insecure image \'http://www.example.in/wp-content/uploads/2014/12/logo_250.png\'. This content should also be served over HTTPS.
跟踪之后SSL breaks customizer: page isn't returned from ajax 回答:我可以修复许多警告。我已经从mysql运行了以下命令:
UPDATE wp_posts SET guid = replace(guid, \'http://www.example.com\',\'https://www.example.com\');
UPDATE wp_posts SET post_content = replace(post_content, \'http://www.example.com\', \'https://www.example.com\');
UPDATE wp_postmeta SET meta_value = replace(meta_value,\'http://www.example.com\',\'https://www.example.com\');
现在仍有许多图像在值列中的wp\\u options表中使用http:prefix。当我运行此程序时,虽然我能够在浏览器的地址栏中获得绿色安全锁,但网站已崩溃:
UPDATE wp_options SET option_value = replace(option_value, \'http://www.example.com\',\'https://www.example.com\');
实际上在wp_options
有option_name
qode_options_proya
以JSON格式存储。如果我们以这种JSON格式从http更改为https,就会导致一些问题。如何解决?