moodle subdomain for the same database

Re: Ang: moodle subdomain for the same database

by David Mudrák -
Number of replies: 0
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Plugins guardians Picture of Testers Picture of Translators

If I understand your request correctly then the answer is probably "no". One Moodle site is supposed to be accessed via one and only one URL. The site URL defined in config.php as $CFG->wwwroot use to be hardcoded in the database (not as much as in Moodle 1.x thanks to the new File API but still).

Some folks try to mimic this behaviour via some hacks in config.php that set wwwroot according the referrer. But I guess more work has to be done in cron and other parts of Moodle that deal with URL in the background.