Wordpress get_template_directory_uri() returns http instead of https

前端 未结 7 1390
暖寄归人
暖寄归人 2021-02-19 03:32

We have recently applied SSL certificate on our website and we want all our url to have https:// protocol.

Once we moved our website to https://, our website broke down

7条回答
  •  不思量自难忘°
    2021-02-19 03:44

    Check the list of plugins installed. Any plugin involving caching, CDNs etc may interfere with get_template_directory_uri. In our case the customer had installed a ton of plugins to supposedly speed up his site.

    With no plugins enabled https loaded fine. So it was just a case of figuring out which one it was. And buried in the offending plugin's settings there was an http version of the site path.

提交回复
热议问题