Use Dropbox in conjunction with its own domain
Tips / / December 19, 2019
The Dropbox Public folder and have to share some files with your friends, you copy it exactly into this folder. The file, once there, the path looks like this
dl.dropbox.com/u/ID/filename
Where ID - this is the "number" of your account. However, if you have your own domain, you can make a beautiful path for files from the Public. I must warn you that the degree of "geeks" in this post upgraded. Hereby geeks here already can laugh. The rest offer a small manual.
Pictures later tupit server
Your files uploaded to the Public can have the address of the form
files.yourdomain.ru/filename.txt
Or any other similar. I'll note that the feature will work only on a hosting with Apache. So, a few simple steps to achieve the goal.
In cPanel on your server, create a new subdomain. For example dropbox.yourdomain.ru.
The subdomain root directory, create a file and name it .htaccess
Open it and insert the following code, replacing the ID on your own. To see ID, copy the public link of any file in your Dropbox and see the numbers after u / before / filename.
1:
2: RewriteEngine on
3: (. *) RewriteRule ^ $ http://dl.dropbox.com/u/XYZ/$1 [L, QSA]
4:
4) You're done! Now you can give your friends links like
subdomain.yourdomain.ru/filename.txt