How to accomidate virtual directories?
Posted
#5528
(In Topic #1128)
ocPortal 9.0.41
IIS 8.5
I need to move my /uploads/downloads/ folder to another drive due to lack of capacity on the origional drive. I have duplicated the content of the /downloads/ folder to a new drive and created a virtual folder named downloads in the /uploads/ folder after renamed the old folder.
The folder URL itself is proven functional by adding a temporary index.php file to it but all download links from the site return a 404.
Can anyone help as I wish to retain this format once the site is upgraded to Composr?
TQ
Posted
The downloads are served via dload.php, which reads the filesystem, not the URLs.
Try using mklink to map uploads/downloads to your new location.
I've never used this on a web server context, but I have used it for other things and it's worked well.
Posted
Chris Graham said
Hi,
The downloads are served via dload.php, which reads the filesystem, not the URLs.
Try using mklink to map uploads/downloads to your new location.
I've never used this on a web server context, but I have used it for other things and it's worked well.
From “Post #6016”, 14th May 2020
Thank You Chris!
mklink seems to be working like a charm.
TQ
1 guest and 0 members have recently viewed this.