How to accomidate virtual directories?

Post

Posted
Rating:
#6012 (In Topic #1438)
TQ
Avatar
Standard member
TQ is in the usergroup ‘Well-settled’
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

hamfiles.co.uk
Online now: No Back to the top

Post

Posted
Rating:
#6016
Avatar
Site director
Chris Graham is in the usergroup ‘Administrators’
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 | Microsoft Docs

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


Become a fan of Composr on Facebook or add me as a friend. Add me on on Twitter. Follow me on Minds (where I am most active). Support me on Patreon

Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Online now: No Back to the top

Post

Posted
Rating:
#6024
TQ
Avatar
Standard member
TQ is in the usergroup ‘Well-settled’

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 | Microsoft Docs

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

hamfiles.co.uk
Online now: No Back to the top
1 guest and 0 members have just viewed this.

Statistics

Users online:

Philip, Manu, Vaiva, gabriel58, Paul D, John Connor, mytracker, Salman, ManojSree

Forum statistics:
  • 1,118 topics, 5,364 posts, 6,348 members
  • Our newest member is ketobodytone
Birthdays:
Back to Top