diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-10-03 01:52:07 -0700 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-10-03 01:52:07 -0700 |
commit | fbe8e27568ea17dc3522fc2a12a41f614540b46a (patch) | |
tree | 5c715e5d9f883d3dbaf086349c62a9f2487e1bbe | |
parent | 8623a5320078415f778c665c10827346512df448 (diff) | |
parent | 4ee705a79c455ab01b4c8dd3ad9372d855bd2a88 (diff) | |
download | wallabag-fbe8e27568ea17dc3522fc2a12a41f614540b46a.tar.gz wallabag-fbe8e27568ea17dc3522fc2a12a41f614540b46a.tar.zst wallabag-fbe8e27568ea17dc3522fc2a12a41f614540b46a.zip |
Merge pull request #250 from NumEricR/dl-export
Force download on poche export
-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 | ||