we plan to establish courses with moodle-learning resources and want that the content of the course is found by google. So we set autologinguest to true and opentogoogle to yes, but google still does not crawl the resources because of following reason:
the require_login function does a redirect to login guests (MDL-19533). This redirections causes the googlebot to ignore the content of the course (not to access the course at all). (Checked this with lynx and the results of google webmaster tools)
In lib/moodlelib.php I identified the lines causing the redirection (1.9.3):
1883 if (empty($CFG->loginhttps) or $loginguest) { //do not require https for guest logins 1884 redirect($CFG->wwwroot .'/login/index.php'. $loginguest); 1885 } else { 1886 $wwwroot = str_replace('http:','https:', $CFG->wwwroot); 1887 redirect($wwwroot .'/login/index.php'); 1888 }Is there a way to autologin guests without this redirection? Or another possibility to enable google to view the content of an open course?
Thanks,
David