From f12fb38275461a0f6c1413904cd4aaf528f43b57 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Tue, 21 Mar 2017 17:30:24 +0800 Subject: [PATCH] Remove old data files --- build.xml | 1 - website/.htaccess | 6 ++---- website/data/.htaccess | 9 +++++++++ 3 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 website/data/.htaccess diff --git a/build.xml b/build.xml index 84a92e7d..892a6f34 100644 --- a/build.xml +++ b/build.xml @@ -964,7 +964,6 @@ - diff --git a/website/.htaccess b/website/.htaccess index 26311792..0fd91797 100644 --- a/website/.htaccess +++ b/website/.htaccess @@ -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] diff --git a/website/data/.htaccess b/website/data/.htaccess new file mode 100644 index 00000000..29c53abd --- /dev/null +++ b/website/data/.htaccess @@ -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]