[Apache] Make public url using dropbox space

If you want an url to your website that is linked to your Dropbox Public folder, like this,

https://www.albertopasca.it/cloud/MyFile.zip
httpw://www.albertopasca.it/image/MyGallery

you have found the solution, simply editing your .htaccess file on your site:

RewriteEngine on

##############
# DROPBOX
##############
RewriteRule ^cloud/(.*)$ http://dl.dropbox.com/u/ID/$1 [L]
RewriteRule ^image/(.*)$ https://www.dropbox.com/gallery/ID/1/$1 [L]

You need only to replace only ID with your dropbox ID.

Enjoy sharing!

 

Alberto Pasca

Software engineer @ Pirelli & C. S.p.A. with a strong passion for mobile  development, security, and connected things.