Added code to allow URL like /moodle2