From Dan Marsden (dan at digitalclay.co.nz) Tuesday, 30 May 2006, 10:04 AM:
This happens in IIS because some of the moodle Continue links post are called with wwwroot/ rather than an explicit wwwroot/index.php,
this results in a 405 page as the user is trying to post to a directory. - I presume in apache it redirects before posting
there are a few people with this problem in the forums - see:
- this seems to happen all over the place in moodle code - do a search for notice( and redirect( there are many that just redirect to $CFG->wwwroot which won't work in IIS
modify the functions notice and redirect to check if the $link=$CFG->wwwroot and if so, add the correct homepage to the end of the redirect.
I would suggest a new VAR in config.php
maybe something called $CFG>home that contains index.php - or whatever a site admin configures the name of the site homepage to be.
From Dan Marsden (dan at digitalclay.co.nz) Tuesday, 30 May 2006, 10:07 AM:
should clarify that a bit - a simple redirect works fine, however when that redirect sits within a form eg:
form action=http://moodle.org/ this doesn't work. - it should be: