Custom Moodle App prepends www to hostname

Custom Moodle App prepends www to hostname

by Leon hedding -
Number of replies: 1

The custom moodle mobile app keeps adding a "www" before my hostname. This gives a 404 because our site is not available from that location. Am I doing something wrong? The hostname should be https://servername.com, but the app keeps trying https://www.servername.com which  does not work.

Average of ratings: -
In reply to Leon hedding

Re: Custom Moodle App prepends www to hostname

by Dani Palou -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Hi Leon,

the Moodle Mobile app always perform the same steps to connect to a site:

  1. Try the input URL with https protocol.
  2. If it fails, add or remove 'www' from the URL and try again with https protocol.
  3. If it fails, try the input URL with http protocol.
  4. If it fails, add or remove 'www' from the URL and try again with http protocol.

If you look at the network tab you should see those 4 requests.

Cheers,

Dani

Average of ratings: Useful (1)