Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm looking for some help integrating a Dropbox landing page to my current htaccess.

I've found this great script (not supported by my hosting because use mod_proxy [P] in Apache) http://leebyron.com/how/2010/03/09/dropbox-custom-domain/

These are the 2 landing pages that I want:

box.leebyron.com (Dropbox public folder root page redirect to index.php - not 404) box.leebyron.com/wrong-url.zip (wrong url is redirect to index.php - not 404)

My question: How do add the landing page to the following .htaccess file:

# Check to see if mod_rewrite is installed / avaliable
<IfModule mod_rewrite.c>
RewriteEngine on

# Check to see if file or directory exists
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Rewrite to Dropbox URL. Make sure you change the data after "/u/" (9502594) to your own user ID
RewriteRule ^e/(.*)$ http://dl.dropbox.com/u/9502594/$1 [L,QSA]    # Embedded File
RewriteRule ^(.*)$ http://dl.dropbox.com/u/9502594/$1?dl=1 [L,QSA] # Force Download (Default)
</IfModule>
share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.