我正在将我的网站从http迁移到https。现在静态文件来自http模式。实例
<script type=\'text/javascript\' src=\'http://demo.com/news/wp-includes/js/comment-reply.min.js?ver=4.9.6\'></script>
<script type=\'text/javascript\' src=\'http://demo.com/news/wp-includes/js/wp-embed.min.js?ver=4.9.6\'></script>
应该是这样的
<script type=\'text/javascript\' src=\'https://demo.com/news/wp-includes/js/comment-reply.min.js?ver=4.9.6\'></script>
<script type=\'text/javascript\' src=\'https://demo.com/news/wp-includes/js/wp-embed.min.js?ver=4.9.6\'></script>
我补充道
remove_filter(\'template_redirect\', \'redirect_canonical\');
删除重定向,因为它是从aws云端加载的。要从https加载所有css/js,我必须做什么?