1
0
Fork 0
mirror of https://codeberg.org/polarisfm/youtube-dl.git synced 2024-12-23 00:02:24 +00:00

add better rewrite rules

This commit is contained in:
Philipp Hagemeister 2016-06-04 11:39:40 +02:00
parent c0716886d8
commit 00221fad40
4 changed files with 6 additions and 2 deletions

View file

@ -12,4 +12,8 @@ RewriteRule ^(faq-)?citw$ https://github.com/rg3/youtube-dl/blob/master/README.m
RewriteRule ^example-url$ https://github.com/rg3/youtube-dl/blob/master/CONTRIBUTING.md#is-the-description-of-the-issue-itself-sufficient [R=302,L,NE]
RewriteRule ^g403$ https://github.com/rg3/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 ^latest/version$ latest_version [L,T=text/plain]
RewriteRule ^latest_version$ - [T=text/plain]
RewriteRule ^latest/(.*)$ /downloads/latest/$1 [R=302,L]

1
latest/.gitignore vendored
View file

@ -1 +0,0 @@
.htaccess

View file

@ -11,4 +11,5 @@ fi
cd "$(dirname $(readlink -f $0))"
echo -n "$version" > latest_version
/bin/echo -e "RewriteEngine On\nRewriteRule ^(.*)$ /downloads/latest/$1 [L,R=302]" > latest/.htaccess
ln -sf downloads/latest downloads/$1