i am doing migration of my website from http to https . now static files are coming from http schema . example
<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>
it should be
<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>
i added
remove_filter('template_redirect', 'redirect_canonical');
to remove redirection because it load from aws cloud front . what i have to do to load all css/js from https ?