summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-04-30 10:39:23 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2014-04-30 10:39:23 +0200
commit54a1852f0802347277a0f7eb0613591da0660479 (patch)
tree09e4e06fc838e5db838063d8342b68523320c76c
parent0b33704b432fc6a0da56a0b38831a8533e96aba5 (diff)
downloadyoutube-dl-54a1852f0802347277a0f7eb0613591da0660479.tar.gz
youtube-dl-54a1852f0802347277a0f7eb0613591da0660479.tar.xz
youtube-dl-54a1852f0802347277a0f7eb0613591da0660479.zip
Add a redirect for downloads/latest
-rwxr-xr-xupdate_latest.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/update_latest.sh b/update_latest.sh
index 45122a68d..834f8f814 100755
--- a/update_latest.sh
+++ b/update_latest.sh
@@ -16,5 +16,7 @@ for f in $(ls "downloads/$version/"); do \
 done
 
 ln -sf --no-target-directory "$version" "downloads/latest"
+/bin/echo -e "RewriteEngine On\nRewriteRule latest(.*) /downloads/${version}\$1 [L,R=302]" > .htaccess
+
 echo -n "$version" > latest/version