(Moodle 2.02+ build 20110223)
We've needed to migrate our Moodle to another web host.
Unfortunately, I have minimal knowledge of moodle (site was built on the prev hosting by someone else - e.g. the basic install was provided & they just used the web front-end to add content)
I've got the database and content moved across and working.. to an extent.
The problem is that all the picture and file links appear to be broken and I'm not sure how to resolve the issue..
The site is set up as follows
$CFG->wwwroot = 'http://sitename.com/moodle';
Which is /home/public_html/moodle on my hosted web space..
$CFG->dataroot = '/home/sitename/data/moodledata';
Which is /home/data/moodledata on my hosted web space..
The data path link is clearly correct and working as I get the bare pages etc..
Trouble is the links are (for example):
http://mysitename.com/moodle/file.php/coursenumber/foldername/filename.jpg
I assumed the file.php substitutes in a part of the path, but that wouldn't appear to work as the data isn't under the moodle directory..
I can't replace it with an explicit URL as I can't browse to the moodledata folder/files, as they are 'above' the public_html directory..
I even tried dropping the moodledata folder to the same folder level as the moodle one (so i could browse to the files), but moodle doesn't appear to like that and kept giving me warning messages under Site Admin etc that I needed to move it out of a public directory..
Which is fair enough but how can I replace the URL's and with what path?
Could I use
/home/sitename/data/moodledata/coursenumber/foldername/filename.jpg somehow?
EDIT- I've tried replacing the url's under the web interface though and it keeps adding http://sitename.com back in before the edited URL when I update/save it
Any help would really be appreciated as I've been dropped into this cold and am unsure how to resolve these issues..
Many Thanks..