htaccess to redirect on DropBox’s public folder 17 September, 2008
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:
- 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
- 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!





18 September, 2008 alle 2:56
[...] you have your own web hosting, I saw a great tip on the Planet GNOME feed for setting up a URL that’s easier to remember than the one DropBox [...]
24 September, 2008 alle 11:59
\o/
questa mi mancava, stra-comodo
4 October, 2008 alle 0:15
Comodissimo, grazie Andrea.
10 October, 2008 alle 22:14
is there a way to display the content of public folder?
10 October, 2008 alle 22:29
@4:
maybe doing a script that creates an index.html
this script should be updated by dropbox’s nautilus extension
10 November, 2008 alle 22:22
[...] Cimi’s Official Blog » Blog Archive » htaccess to redirect on DropBox’s public folder. [...]