From b0035c3448a5c95f0748fcb9b0af983ecd8ba21e Mon Sep 17 00:00:00 2001 From: Sergey M․ Date: Sat, 11 Jun 2016 02:25:05 +0700 Subject: Allow latest without trailing slash --- .htaccess | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.2.3