Automatic https: redirection

Automatic https: redirection

by Sali Kaceli -
Number of replies: 1

We used to have automatic redirection for our moodle site and for some reason recently it is no longer working. So I am hoping someone can give me some idea as to what I am missing. 

I have the following so far enabled: 

  • Use HTTPS for logins - ENABLED (in Moodle HTTP security)
  • $CFG->wwwroot = 'https....... sitename';
  • $CFG->sslproxy = true


Once the user enters the password, everything works fine when the user types 'sitename.com' it does not redirect to https://sitename.com


Thoughts anyone? 

Environment: Moodle 2.8.2+ LAMP


Average of ratings: -
In reply to Sali Kaceli

Re: Automatic https: redirection

by Bret Miller -
Picture of Particularly helpful Moodlers

You need to configure apache to redirect http connections automatically to https.