diff options
Diffstat (limited to '.htaccess')
-rw-r--r-- | .htaccess | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.htaccess b/.htaccess new file mode 100644 index 00000000..37b7701c --- /dev/null +++ b/.htaccess | |||
@@ -0,0 +1,8 @@ | |||
1 | Options +FollowSymlinks | ||
2 | RewriteEngine On | ||
3 | RewriteRule ^dl/export_poche.json$ ?export [L] | ||
4 | |||
5 | # Force download | ||
6 | RewriteCond %{QUERY_STRING} =export | ||
7 | RewriteRule ([^/]*)$ - [L,E=dl:$1] | ||
8 | Header onsuccess set Content-disposition "attachment; filename=%{dl}e" env=dl \ No newline at end of file | ||