diff options
author | NumEricR <eric.github@gmail.com> | 2013-09-26 23:25:01 +0200 |
---|---|---|
committer | NumEricR <eric.github@gmail.com> | 2013-09-28 11:15:35 +0200 |
commit | 4ee705a79c455ab01b4c8dd3ad9372d855bd2a88 (patch) | |
tree | 5c715e5d9f883d3dbaf086349c62a9f2487e1bbe | |
parent | 8623a5320078415f778c665c10827346512df448 (diff) | |
download | wallabag-4ee705a79c455ab01b4c8dd3ad9372d855bd2a88.tar.gz wallabag-4ee705a79c455ab01b4c8dd3ad9372d855bd2a88.tar.zst wallabag-4ee705a79c455ab01b4c8dd3ad9372d855bd2a88.zip |
Add .htaccess file to force download of 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 | ||