Cimi’s Official Blog

Italians do it Better…

Just a Blog on Gtk+ Theming, Bleeding-Edge, Good Software...

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:

  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!


Posted in Dropbox, English |

7 Replies

  1. ${me:-whatever} » Dropbox said:

    [...] 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 [...]

  2. weseven said:

    \o/
    questa mi mancava, stra-comodo :)

  3. disconnesso said:

    Comodissimo, grazie Andrea.

  4. Max said:

    is there a way to display the content of public folder?

  5. Cimi said:

    @4:
    maybe doing a script that creates an index.html
    this script should be updated by dropbox’s nautilus extension

  6. Cimi’s Official Blog » Blog Archive » htaccess to redirect on DropBox’s public folder | Midspot said:

    [...] Cimi’s Official Blog » Blog Archive » htaccess to redirect on DropBox’s public folder. [...]

  7. Der M-Blog - hübsche Dropbox Links said:

    [...] man aber eine eigene Website, lassen sich die Dropbox Links aufhübschen und eine Weiterleitung einrichten, dann wird [...]

Leave a Comment

Attention: Moderation is enabled, and could cause a delay to the posting.

This blog is "Powered by Cimi"

Theme from: Kaushal Sheth | Modified by: Andrea Cimitan