Remove old data files

This commit is contained in:
Reinhard Pointner 2017-03-21 17:30:24 +08:00
parent cc99f1d4d8
commit f12fb38275
3 changed files with 11 additions and 5 deletions

View File

@ -964,7 +964,6 @@
<target name="upload-data" description="Upload data files" depends="init">
<scp todir="${deploy.website}" trust="yes" verbose="true" sftp="true" keyfile="${deploy.keyfile}">
<fileset dir="${dir.website}">
<include name="data/*.txt" />
<include name="data/*.xz" />
<modified>
<param name="cache.cachefile" value="${dir.cache}/scp.cache" />

View File

@ -30,8 +30,6 @@ redirect 302 /channel.html https://discord.gg/cKVvZ2S
# redirect filebot.sourceforge.net to www.filebot.net
RewriteEngine on
RewriteCond %{HTTP_HOST} =filebot.net [NC]
RewriteRule ^(.*)$ http://www.filebot.net/$1 [R=301,L]
RewriteCond %{HTTP_HOST} =filebot.sourceforge.net [NC]
RewriteCond %{HTTP_HOST} ^filebot\.net$ [OR]
RewriteCond %{HTTP_HOST} ^filebot\.sourceforge\.net$
RewriteRule ^(.*)$ http://www.filebot.net/$1 [R=301,L]

9
website/data/.htaccess Normal file
View File

@ -0,0 +1,9 @@
# cache by User Agent (e.g. FileBot 4.2)
Header append Vary User-Agent
# block outdated versions
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^FileBot.[0-9].[0-6].*$ [NC]
RewriteRule ^(.*)$ - [G]