How To Get Dropbox Custom Domain Name URL For Your Files

Dropbox is a fantastic resource for us, who hates free storage btw? We can store them and we can also share them. Even though we have several file hosting services, Dropbox is something which is famous for its branding and its support. Talking about Branding, I thought about sharing an important tip that might help you to brand Dropbox file URLs.

Normally a Dropbox file URL will look like this:

We are now going to make it look like this:

The latter URL will redirect to the former URL and this tip or trick happens to all the files inside Dropbox’s Public folder.

Steps To Get Dropbox Custom Domain Name

Creating A Subdomain: First we need to create a subdomain for using Dropbox with it. In my case, I created ‘’ for using my personal Dropbox account. is a short URL I’m using for my blog posts at my personal blog.

You can create a subdomain at your cPanel, just login and go to the section “Subdomains”. There you can create a new one.

Dropbox Custom Domain - Create Subdomain

After creating your subdomain, head right to your subdomain directory in your server. You can use Filezilla or you can use your cPanel for entering your server. I used the latter. So either way, just create a plain .htaccess file.

Dropbox Custom Domain - Create htaccess

Now you need to copy and paste the following code there:

RewriteEngine on
RewriteRule ^(.*)$$1 [L,QSA]

Remember to replace ABC with your Dropbox ID. For example, our Dropbox ID is 14841459.

How To Find Your Dropbox ID? Dropbox has a special folder called “Public”, where you can upload and share your files publicly. Just right click any file there and choose “Copy public link…”

Dropbox Custom Domain - Right Click Public File

Now you’ll get this popup with a custom Dropbox URL for that file. Here you can figure out the Dropbox ID.

Dropbox Custom Domain - Public URL

Hope you got your Dropbox ID now? So kindly keep this ID in that code and now migrate to your server side, paste those two lines there and save it. That’s it.

Now whenever you are uploading a file or a pic on your Dropbox ‘Public’ folder, you can easily make your Dropbox Custom Domain Name URL as ‘’.

So if your file’s original Dropbox URL is

You can also make it as

That’s awesome isn’t it? Now I can easily tell my friends to access our tour photos at (not live) beforehand itself.

2 thoughts on “How To Get Dropbox Custom Domain Name URL For Your Files”

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top