HOW TO SETUP SSL IN MOODLE

HOW TO SETUP SSL IN MOODLE

November 23, 2019

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.

Share This Story, Choose Your Platform!

Lets Discuss On Your Store