I'm hoping that D8 multisites will use more friends URLs to image and files.
On a D6 multisite, an image file path can look like this: /sites/mydomain.com/files/imagecache/etc
In D6 CCK, filefield stores the whole path, hard-wiring the file to mydomain.com
It seems to me that the first part of the mutlisite path "/sites/mydomain.com/" is redundant, and we should be able to exclude it, so that an image file path becomes simply: /files/imagecache/etc
Some clever people have solved this with modifications to htaccess (see "Multisite Files directory issue"), so that a request to www.mydomain.com/files/imagecache/etc will automatically resolve to www.mydomain.com/sites/mydomain.com/files/imagecache/etc
I'm hoping that this will work out of the box.
Comments
Comment #1
iantresman commentedComment #2
iantresman commentedI've just noticed that this applies to all Drupal 8 sites, not just multisite. All files are uploaded to, and is referenced as:
sites/default/files/inline-images/phone-icon-md.pngCan't the routing module automatically alias this to:
inline-images/phone-icon-md.pngIt would make it easier to move content between sites.
Comment #3
rickvug commented@iantresman This is worth doing IMO. Will need someone to take on the work and submit a patch of course.
Comment #5
cilefen commentedThis can be done easily with .htaccess rewrites.
Comment #6
berdirNo, it can't. public files are not delivered through Drupal.
You can either use .htaccess rewrites as suggested above, or simply configure public path to be elsewhere.
I think this should be closed.
Comment #21
quietone commentedThere has been no support for this feature request in the last 9 years. Also, @berdir, explains how to do this in in #6.
Therefor, closing this issue.