Saturday 5 May 2012

How To Use Dropbox With Your Own Domain

Dropbox is one of the leading cloud providers over the web. Well lots and lots of people use dropbox nowadays and they sync their files through their mobiles, computers, tablets etc. But however when you upload a file to dropbox it provides you a very long URL for you to access the file. Why dont you use your own domain with dropbox ? And this would greatly simplify the URL of your files in Dropbox. So lets get started and see on how to do it.



Requirements :

  1. Dropbox account
  2. Your Domain
Getting started :

The thing that you are gonna need for this tutorial is a web host. There are lots and lots of free web hosts that are available round the web and you can choose one among them. 

Setting Up Your Host :

As I mentioned earlier there are lots of free web hosting providers who are available round the web and in this tutorial I would be using a hosting service named as Koolserve. Create an account there and proceed to the following steps.

1. Login to the cPanel of your account whose details would be given in the email which you got on confirmation.

2. Find the panel which says Domains and in that select Subdomains.


3. Enter any name in the field provided. I would recommend you to add the name as dropbox. And click on create. Make sure that the next field says public_html/THE-NAME-YOU-PROVIDED


4. Now come back to your cPanel and enter into the File Manager.

5. Navigate to public_html/THE_NAME_YOU_PROVIDED.

6. Come Back to the cPanel and again enter the File manager. But this time make sure that you check the box which says Show Hidden Files.

7. Enter into the folder with the name of your sub domain and there you can find a file called as .htaccess. Right click the file and click edit file. Enter the following lines of codes in it. Dont forget to replace DROPBOX_ID with your Dropbox ID.

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

And that's it. You have completed it. Now the thing that you need to do while sharing the file in your Dropbox with your friends is to replace a part of the URL with the subdomain.

For example if your subdomain is example.123.com and the URL of your file in Dropbox is http://dl.dropbox.com/u/49153242/new/readme.html :


Replace http://dl.dropbox.com/u/49153242 with example.123.com so that it becomes example.123.com/new/readme.html.


Thank you for reading this article and I hope that you are now easily able to share your files with simpler URL's. Post your doubts as comments. Happy Dropboxing !