Hello,
I’ve been searching high and low for someone who can give me an informed response about the issue I’m about to describe. In fact, I paid for a membership on this forum for this explicit reason. Short of begging, which may come later if I no one responds to this message, I’d be very grateful for any feedback. I’ll try to break this down as clearly as I can…
Background:
Moodle is a Learning Management System (LMS), which basically is a CMS for eLearning. Like other CMS environments, Moodle (www.moodle.org) uses themes. In Moodle, each course can have a separate theme. The issue I’m about to describe is not a Moodle-specific thing, however, as it could apply to any CMS that use themes. Moodle just happens to be the CMS that I’m using.
Setting the stage:
Let’s assume that my Moodle site is www.MyMoodleSite.com and that it has two courses, Course 1 and Course 2, and that each one is using its own custom theme.
My Goal:
I am looking to display different domain names for different courses within the SAME Moodle site, like this:
Site Level: www.MyMoodleSite.com
Course 1: www.course1.com
Course2: www.course2.com
In other words, when I enter Course 1, rather than show a URL like www.MyMoodleSite.com/course/view.php?id=85, it should display www.course1.com. When I exit Course 1 and return to the front page (site level), the domain name should return to www.MyMoodleSite.com.
My Thinking:
Again, let’s assume that each of the above is using its own custom theme, like this:
Site Level (using theme A)
Course 1 (using theme B)
Course 2 (using theme C)
I would like to modify these themes (ie. add code, .htaccess file, whatever) so that each theme makes use of mod_rewrite (or alternative module/script) to change the domain name while the theme is in use. In short, the theme would trigger the domain name change.
If this were possible, the only missing piece of the puzzle would be to change the DNS CName record so that the www.course1.com and www.course2.com point to the relevant courses (example: www.course1.com > www.MyMoodleSite.com/course/view.php?id=85). This would allow courses to be accessed directly (outside www.MyMoodleSite.com).
The Big Question:
Would this work? If not, is there another way of achieving the same thing? I am not a coder myself but if this is possible, then my next step would be to try to find someone who can make this happen.
Again, any suggestions, ideas, thoughts would be much appreaciated.
Thanks,
Fernando