# Everything below /drop/ is handled by index.php.

# Allow large PUT bodies (must match MAX_FILE_BYTES in index.php).
LimitRequestBody 536870912

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /drop/

    # The storage directory is never served directly.
    RewriteRule ^data(/|$) - [F,L]

    # Anything that is not a real file on disk goes to the router.
    # [B] re-escapes the backreference so filenames containing & or % survive.
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?_p=$1 [B,QSA,L]
</IfModule>

# Directory listings off, index.php is the default document.
Options -Indexes
DirectoryIndex index.php

<IfModule mod_headers.c>
    Header always set X-Content-Type-Options "nosniff"
</IfModule>
