Got tired of the long dropbox url for your public files? It is difficult to remember when you are on IRC and you don’t want to open nautilus and search for that file?
Do this with a htaccess
You just need to follow these two easy steps:
1. Create a new folder on your web server, for example “dropbox”. In my case I’ll have http://cimitan.com/dropbox or http://dropbox.cimitan.com
2. Create this .htaccess file with the dot and place it inside the “dropbox” folder:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.$ http://dl.getdropbox.com/u/012345/$1 [L,QSA]
Of course remember to change “012345? with your dropbox user ID
Result: http://dropbox.cimitan.com/screens/dropbox.gif
You can also play with symlinks in your Public folder For example: inside my Public folder I’ve a subdirectory called Screenshots, which is symlinked to screens and tmp. They will work too
Cimi’s Official Blog » Blog Archive » htaccess to redirect on DropBox’s public folder.






