aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSergey M․ <[email protected]>2019-03-17 07:02:16 +0700
committerSergey M․ <[email protected]>2019-03-17 07:02:16 +0700
commitc444b696444a18fa4480b6b9458915e7c011ef5e (patch)
treeeb9cc261bbafcba17ddb73176ee060286097ff14
parentc3c160f402767361bacb6bd9d26cb49cdabfa5ec (diff)
downloadyoutube-dl-c444b696444a18fa4480b6b9458915e7c011ef5e.tar.gz
youtube-dl-c444b696444a18fa4480b6b9458915e7c011ef5e.zip
[.htaccess] Add rewrite rules for LATEST_VERSION and versions.json
-rw-r--r--.htaccess3
1 files changed, 3 insertions, 0 deletions
diff --git a/.htaccess b/.htaccess
index e31fe65f9..7f681dcd9 100644
--- a/.htaccess
+++ b/.htaccess
@@ -13,6 +13,9 @@ RewriteRule ^(?:example-url|questions)/?$ https://github.com/ytdl-org/youtube-dl
RewriteRule ^g403/?$ https://github.com/ytdl-org/youtube-dl/blob/master/README.md#i-extracted-a-video-url-with--g-but-it-does-not-play-on-another-machine--in-my-webbrowser [R=302,L,NE]
RewriteRule ^format-selection/?$ https://github.com/ytdl-org/youtube-dl#format-selection [R=302,L,NE]
RewriteRule ^output-template/?$ https://github.com/ytdl-org/youtube-dl#output-template [R=302,L,NE]
+
+RewriteRule ^update/LATEST_VERSION$ https://ytdl-org.github.io/youtube-dl/update/LATEST_VERSION [R=302,L]
+RewriteRule ^update/versions.json https://ytdl-org.github.io/youtube-dl/update/versions.json [R=302,L]
RewriteRule ^latest/version/?$ latest_version [L,T=text/plain]
RewriteRule ^latest_version/?$ - [T=text/plain]