Actually this is an issue with relative paths in generally, not only IMCE, and probably due to some wrong setting on my part.
Therefore I'm labeling it a support request.
On my local server, relative paths created by IMCE, and relative paths necessary for other stuff to work as well (e.g. flash plugins etc) is of the form:
/drupal/sites/all/files/...
I don't know why 'drupal' (or whatever one renames the drupal folder to) should be in the path. I would expect it to be relative to the drupal folder, not to htdocs.
When deploying the site to e.g. http://www.example.com, all such paths are broken and need to be modified as follows in order to function (which is a pain):
/sites/all/files/...
Any ideas?
This must have been answered somewhere, as I suspect more than one users have run into this issue, but couldn't determine the phrasing to find an exact search result, so pls bear with me.
Thank you in advance.
Comments
Comment #1
marktheshark commentedDuplicate to https://drupal.org/node/199484
I could probably change documentRoot every time I develop a site, so as to force the site to mount to http://localhost, but I guess this is really a matter of IMCE not returning relative, but absolute paths (that initial / should have tipped me off).
Comment #2
marktheshark commentedDuplicating