Incorrect access detected site

Incorrect access detected site

by Chris Adams -
Number of replies: 0

Hello everybody

Yesterday we upgraded to to 2.5.4+, and all of a sudden we've started getting the old ' Incorrect access detected, this server may be accessed only through "http://correct/path/to/your/site" address' message coming up. This is caused because our moodle is configured with 'www.bris.ac.uk/dlm2013-14/' as the base web address, but our server redirects the shortened URL 'www.bris.ac.uk/dlm/' to it.

This problem is solvable by dong what it says here, which is

In lib/setuplib.php look for this line

    redirect($CFG->wwwroot, get_string('wwwrootmismatch', 'error', $CFG->wwwroot), 3);
 

Change the 3 to 1. 

but the problem is that any deep links we have which use the shortened URL then get redirected to the front page. This has only happened since we upgraded yesterday - it didn't used to do it.

Any ideas anybody?

Thanks,

Chris

Average of ratings: -