- Log in to cPanel
- Using File Manager, navigate to the Moodle files and identify the config.php file
- At line 17 modify $CFG->wwwroot = 'http://examplu.tld'; in $CFG->wwwroot = 'https://examplu.tld';
- Save config.php
- Enter the .htaccess file, add the following code and then save the file:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.examplu.tld/$1 [R,L]
