瀏覽代碼

[.htaccess] Add rewrite rules for LATEST_VERSION and versions.json

Sergey M․ 6 年之前
父節點
當前提交
c444b69644
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      .htaccess

+ 3 - 0
.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]