Dec 30

Step 1. Go to your cPanel and setup a new sub-domain (for example, files.labnol.org). This should create a new directory with the same name on your server.

Step 2. Log in to your server and create a new file called .htaccess in the above directory. Do remember to replace XYZ with your Dropbox ID.

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^(.*)$ http://dl.dropbox.com/u/XYZ/$1 [L,QSA]
</IfModule>

That’s it. Now before sharing a Dropbox URL, replace dl.dropbox.com/u/ID with your web address (like files.labnol.org) and the recipients will still be able to download your files as before.