SOLVED Upload files for simple download URL?

Peridot703

Registered
Jun 3, 2019
3
0
1
Australia
cPanel Access Level
Website Owner
I am a website owner (my site was built for me but I am having trouble getting my questions answered by the developer). My knowledge is scant!

I would like to upload some pdf files onto the website through cpanel to make them available for download. I added a "downloads" folder to the public_html folder and placed them in there, but would like to be able to open them with a fairly simple pathway eg. wesbite/downloads/filename rather than a string that is 200 characters in length.

I seem to recall doing it a number of years ago, but it seems to have changed (not surprising given the length of time I guess!)

Any guidance to achieving this aim would be much appreciated.
 

GOT

Get Proactive!
PartnerNOC
Apr 8, 2003
1,542
207
343
Chesapeake, VA
cPanel Access Level
DataCenter Provider
If what infopro is decribing doesn't work, it may because of rewrites your main site is using. In cases like that, what we suggest is that you make s ubdomain and make sure its root is in /home/user/subdomain and no in /home/user/public_html/subdomain.

In this way you can make files.example.com, upload the files to /home/user/files/ and then they are avialble as http://files.example.com/file.pdf and the main site htaccess will not interfere.
 
  • Like
Reactions: Infopro