Lost formating when converting to HTTPS

Lost formating when converting to HTTPS

by Gary Newport -
Number of replies: 1

When I installed Moodle I had not correctly formed my certificate for HTTPS, and so Moodle reported that my site was unsecure (no HTTPS being used).


I have since forced HTTPS and it is now working but the themes aren't working and I am being told that the following won't work until I upgrade them to reference HTTPS:

http://MY_SITE/theme/image.php/fordson/theme/1631567586/favicon
http://MY_SITE/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.css
<script src="http://MY_SITE/lib/javascript.php/1631561463/lib/babel-polyfill/polyfill.min.js"></script>
<script src="http://MY_SITE/lib/javascript.php/1631561463/lib/polyfills/polyfill.js"></script>
<script src="http://MY_SITE/theme/yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js"></script><script src="http://www.garynewport.com/theme/jquery.php/core/jquery-3.5.1.min.js"></script>
<script src="http://MY_SITE/lib/javascript.php/1631561463/lib/javascript-static.js"></script>
Where do I go to in order to upgrade these references within Moodle?


Average of ratings: -
In reply to Gary Newport

Re: Lost formating when converting to HTTPS

by Gary Newport -
Okay. Solved almost immediately.

For any future individuals with the same issue, go in to your config.php file in the root of your Moodle installation and you will find reference to HTTP. Simply alter this one instance to include the S (HTTPS). Reload your site and it should all work!