Home » HOW TO SETUP SSL IN MOODLE

HOW TO SETUP SSL IN MOODLE


Please check below steps to setup ssl in Moodle LMS:

Step: 1

  • Goto Moodle  config.php file on moodle root.
  • Change $CFG->wwwroot to https as shown ( $CFG->wwwroot = ‘http://example.com’;)

Step: 2

  • Next, Set up a redirect in your .htaccess file. Place the following code to htaccess
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://example.com/$1 [R,L]
Save the .htaccess file.
,