Dear all, sorry if this has been discussed before. I did my homework to search in this forum but couldn't find an discussion thread about this. So here is my question:
It seems that Moodle was designed in the way that the "actual" login page is under /login/index.php, and after you login, then it will trigger the root /index.php, where it will display the information such as "Available Courses", calendar, etc.
However, for our case, we would like to make sure that when students to go our site (let's say for example, http://pilot.cmu.edu), it will go directly to that /login/index.php page, instead of clicking on that tiny "login" link located on the upper-right corner (root index.php) first, then being prompted for the actual login page (redirect to /login/index.php). I understand that in some configuration, you could use apache (httpd.conf) to set your initial page to be /login/index.php (instead of the root /index.php). However, we are using a hosting company that does NOT provide such option. I also thought of using ".htaccess" redirect or even PHP redirect, however, I thnk this is NOT what we wanted, as it will simply redirect all traffics that goes to root /index.php to /login/index.php, which doesn't seem right. I also found that inside of Moodle there is a "Alternate Login URL" (alternateloginurl), under Site Administration > Users > Authentication > Manage authentication. However, according to its explanation, this doesn't seem to be what I'm looking for. Here is the explanation of "alternateloginurl":
===
If you enter a URL here, it will be used as the login page for this site. The page should contain a form which has the action property set to'http://xxx.xxx.xxx.xxx/login/index.php' and return fields username and password.
Be careful not to enter an incorrect URL as you may lock yourself out of this site.
Leave this setting blank to use the default login page.
===
Here are my questions:
1. Does this mean that I have to write a from which has the action property set to /login/index.php and replace the root index.php?? I think the root index.php is serving other purposes too so can not be replaced. If my ISP could ONLY point the initial page to root /index.php, what else could I do to force the initial page to be /login/index.php ??
2. Have anyone here heard about a term called "masked URL forwarding?" If we are hosting a pilot site outside of the campus (e.g. http://www.cmumoodle.com), then here in campus we want to create a subdomain (e.g. http://pilot.cmu.edu) to point to http://www.cmumoodle.com), how could we prevent the http://www.cmumoodle.com ever showing up again? That is, we only want our users to be able to see http://pilot.cmu.edu all the time. I know our hosting company (hostmonster.com) does not support "masked URL forwarding", our own campus IT also doesn't support "masked URL forwarding." What could we do then?
Thanks a bunch! We really appreciate your help!
Judy