Use Dropbox with your own Web Domain

Published in: Dropbox

Your Dropbox account comes with a special “Public” folder that you may use to host documents, images, and other stuff that you want to share with everyone. To give you an example, I distribute the Always on Top utility only through my Dropbox Public folder – the file is always available for download and puts little strain on the server.

Personalized Dropbox URLs

dropbox public links

All public URLs on Dropbox follow a very standard pattern as illustrated above. The first part of the URL, which reads like, is common for a Dropbox user and you can easily map it to your own domain or sub-domain.

This will make your Dropbox URLs appear less complex, you get to indirectly promote your brand since its now mentioned in the download links and, best of all, you can track individual file downloads.

How to Map Dropbox to your Web Domain

Option A. If you have a domain and a host running Apache, use the following approach:

Step 1. Go to your cPanel and setup a new sub-domain (for example, This should create a new directory with the same name on your server.

Step 2. Log in to your server and create a new file called .htaccess in the above directory. Do remember to replace XYZ with your Dropbox ID.

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

That’s it. Now before sharing a Dropbox URL, replace with your web address (like and the recipients will still be able to download your files as before.

Option B. If you don’t have access to a web host, you may use Google App Engine to have custom Dropbox URLs.

Step 1: Download the source code for your new project from and make the following changes in the code.

  • Replace XYZ in with your Dropbox user number.
  • Replace APPNAME in appl.yaml with some unique name.

Step 2: Deploy the above project through the Google App Engine launcher. Refer to my previous Web Proxy tutorial for details on how to get started with GAE.

Step 3: This is optional. If you already have a web domain configured with Google Apps, you may serve your Dropbox redirection app on that domain else your Dropbox URLs will have structure like but without your Dropbox ID.

PS:You may use CNAME addresses to map Dropbox URLs to any sub-domain but in that case, the mapping will only happen at the root level and thus your custom URLs will still look complex – you don’t want your URLs to look like

[**] You are only re-mapping URLs and thus the previously-stated bandwidth limits in Dropbox will still apply to all your file downloads.

📮  Subscribe to our Email Newsletter for Google tips and tutorials!
Published in: Dropbox

Looking for something? Find here!

Meet the Author

Web Geek, Google Developer Expert
Amit Agarwal

Amit Agarwal is a Google Developer Expert in Google Workspace and Google Apps Script. He holds an engineering degree in Computer Science (I.I.T.) and is the first professional blogger in India. He is the developer of Mail Merge for Gmail and Document Studio. Read more on Lifehacker and YourStory

Get in touch

Google Add-ons

Do more with your Gmail and GSuite account

We build bespoke solutions that use the capabilities and the features of Google Workspace for automating business processes and driving work productivity.

  1. Mail Merge with Attachments
    Send personalized email to your Google Contact with a Google Sheet and Gmail
  2. Save Emails and Attachments
    Download email messages and file attachments from Gmail to your Google Drive
  3. Google Forms Email Notifications
    Send email notifications to multiple people when a new Google Form is submitted
  4. Document Studio
    Create beautiful pixel perfect documents merging data from Google Sheets and Google Forms
  5. Creator Studio for Google Slides
    Turn your Google Slides presentations into animated GIFs and videos for uploading to YouTube