How to accomidate virtual directories?

Post

Posted
Rating:
#5528 (In Topic #1128)
TQ
Hi Guys,

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

Post

Posted
Rating:
#5530
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.

mklink

Reference article for the mklink command, which creates a directory or file symbolic or hard link.

View



I've never used this on a web server context, but I have used it for other things and it's worked well.

Post

Posted
Rating:
#5538
TQ

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.

mklink

Reference article for the mklink command, which creates a directory or file symbolic or hard link.

View



I've never used this on a web server context, but I have used it for other things and it's worked well.

Thank You Chris!

mklink seems to be working like a charm.

TQ

0 guests and 0 members have recently viewed this.