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

@@ -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