]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Add .htaccess file to force download of poche export 250/head
authorNumEricR <eric.github@gmail.com>
Thu, 26 Sep 2013 21:25:01 +0000 (23:25 +0200)
committerNumEricR <eric.github@gmail.com>
Sat, 28 Sep 2013 09:15:35 +0000 (11:15 +0200)
.htaccess [new file with mode: 0644]

diff --git a/.htaccess b/.htaccess
new file mode 100644 (file)
index 0000000..37b7701
--- /dev/null
+++ b/.htaccess
@@ -0,0 +1,8 @@
+Options +FollowSymlinks
+RewriteEngine On
+RewriteRule ^dl/export_poche.json$ ?export [L]
+
+# Force download
+RewriteCond %{QUERY_STRING} =export
+RewriteRule ([^/]*)$ - [L,E=dl:$1]
+Header onsuccess set Content-disposition "attachment; filename=%{dl}e" env=dl
\ No newline at end of file