summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSergey M․ <[email protected]>2016-06-11 02:25:05 +0700
committerSergey M․ <[email protected]>2016-06-11 02:25:05 +0700
commitb0035c3448a5c95f0748fcb9b0af983ecd8ba21e (patch)
treef0a9dd2fc6f73d4fbd045473bff1fe82e3300e73
parent8c6f08911f366b2b2c1a8c2929206f1666beeba7 (diff)
downloadyoutube-dl-b0035c3448a5c95f0748fcb9b0af983ecd8ba21e.tar.gz
youtube-dl-b0035c3448a5c95f0748fcb9b0af983ecd8ba21e.zip
Allow latest without trailing slash
-rw-r--r--.htaccess2
1 files changed, 1 insertions, 1 deletions
diff --git a/.htaccess b/.htaccess
index 784c25b7a..6ac7910b2 100644
--- a/.htaccess
+++ b/.htaccess
@@ -14,7 +14,7 @@ RewriteRule ^g403$ https://github.com/rg3/youtube-dl/blob/master/README.md#i-ext
RewriteRule ^latest/version$ latest_version [L,T=text/plain]
RewriteRule ^latest_version$ - [T=text/plain]
-RewriteRule ^latest/(.*)$ /downloads/latest/$1 [R=302,L]
+RewriteRule ^latest(?:/(.*))?$ /downloads/latest/$1 [R=302,L]
ErrorDocument 302 "302"