Since the URL of a Moodle instance is stored in its configuration, if you happen to "move" an installation, say from http://mydomain/testmoodle/ to http://moodle.mydomain, needs a few tweaks.
What is the neat way of handling that?
The server is Linux with full (user and root) shell access.
The site URL is set in the file /testmoodle/config.php as wwwroot.
Open config.php in a text editor, there will be a line:
Open config.php in a text editor, there will be a line:
$CFG->wwwroot = 'http://mydomain/testmoodle';
Change this to read:
$CFG->wwwroot = 'http://moodle.mydomain';Job done.
Hi James
> It helps if your test moodle is in its own subdomain, e.g. test.mydomain.com so you can then structure relative links ...
Yes. I have it like http://moodle.mydomain for the production, http://moodle.mydomain/testmoodle/ for the test-run.
I really don't have control over what sort of URL links the course creators set. Will do a SQL dump and check.
Thanks for all the responses!
Visvanath
> It helps if your test moodle is in its own subdomain, e.g. test.mydomain.com so you can then structure relative links ...
Yes. I have it like http://moodle.mydomain for the production, http://moodle.mydomain/testmoodle/ for the test-run.
I really don't have control over what sort of URL links the course creators set. Will do a SQL dump and check.
Thanks for all the responses!
Visvanath