Answer the question
In order to leave comments, you need to log in
Shared media folder for 2 sites. How to do?
So, we have 2 sites foo.ru and bar.ru on hosting . Both sites need a folder, for example, with large videos.
In the picture , the media folder is placed outside the sites.
How to make it so that when requesting a file (for example) foo.ru/media/video.mkv and bar.ru/media/video.mkv the file is taken from the media
root folder . (Just like any other file that is in the media.)
As I understand it, for this you can simply put the .htaccess file with the correct redirect into the media folders on the sites .
Does anyone know how to do this?
Thank you !
Answer the question
In order to leave comments, you need to log in
You can use symbolic links.
In the end, everything will turn out as on your screen, media inside foo.ru and bar.ru will be symbolic links to the media folder, which is on the same level as the site folders
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question