Sign up ×
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)

These are the 2 landing pages that I want: (Dropbox public folder root page redirect to index.php - not 404) (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/(.*)$$1 [L,QSA]    # Embedded File
RewriteRule ^(.*)$$1?dl=1 [L,QSA] # Force Download (Default)
share|improve this question

Your Answer


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

Browse other questions tagged or ask your own question.