Quantcast
Channel: My Experience with Web
Viewing all articles
Browse latest Browse all 18

Moodle Error – Incorrect access detected

$
0
0

Have you even got this message. “Incorrect access detected, this server may be accessed only through … address” So how to remove that? Its so simple

Go to moodle/lib/setuplib.php

and change the following file:

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

to

Redirect ($CFG->wwwroot, get_string('wwwrootmismatch', 'error', $CFG->wwwroot), 0);

Now Moodle will redirect immediately to the wwwroot url defined in config.php without any warning message.

Cheers
Jaswant



Viewing all articles
Browse latest Browse all 18

Trending Articles