When inserting images and other files such as .swf files using the HTML editor it uses the full path instead of a relative path. This is an issue for me as we have different URLs for internal access and external access. For internal access the wwwroot is set to http://192.x.x.x/moodle and for external access the wwwroot is ser to http://moodle.domainname/moodle. So, when inserting images here they are then inaccessible from outside. Any ideas on how to fix this issues?
In reply to Chad Frerichs
Re: I need relative paths instead of absolute for images
by Chad Frerichs -
I have found that if I manually remove the http://192.x.x.x portion of the tag it works both internally and externally. Is there somewhere I can just set this? So, the editor only puts /moodle/file.php/coursenumber/picturefile. That would be very handy in my case.
You would best setting your wwwroot to the external setting and then setting up an internal dns redirect for your external address back to the internal ip address.
If you give me a bit more information about your setup I should be able to help you achieve this...
Jon
If you give me a bit more information about your setup I should be able to help you achieve this...
Jon
Is there any solution to this? Our issue is a little more complex.
We want to push moodle through a secure portal externally. so https://portal.mbc.qld.edu.au/moodle. But the www site doesn't run https, just http. So, images are stored with . If we try and access the site non-https, it fails to find the images.
I'd like to have the images linked as relative paths, in which case they will work regardless of how the site is accessed ..
I'm open to ideas. Apparently this original post was years ago. Has anything happened around this?
Thanks,
Michael Mollard
Moreton Bay College
mollardm at mbc.qld.edu.au
We want to push moodle through a secure portal externally. so https://portal.mbc.qld.edu.au/moodle. But the www site doesn't run https, just http. So, images are stored with . If we try and access the site non-https, it fails to find the images.
I'd like to have the images linked as relative paths, in which case they will work regardless of how the site is accessed ..
I'm open to ideas. Apparently this original post was years ago. Has anything happened around this?
Thanks,
Michael Mollard
Moreton Bay College
mollardm at mbc.qld.edu.au