diff --git a/website/.htaccess b/website/.htaccess index 688dc876..062778ef 100644 --- a/website/.htaccess +++ b/website/.htaccess @@ -8,12 +8,13 @@ RewriteEngine on RewriteCond %{HTTP_HOST} =filebot.sourceforge.net [NC] RewriteRule ^(.*)$ http://www.filebot.net/$1 [R=301,L] +RewriteCond %{HTTP_USER_AGENT} !filebot [NC] +RewriteCond %{HTTP_HOST} =filebot.net [NC] +RewriteRule ^scripts\/(.*)$ https://github.com/filebot/scripts/blob/devel/$1 [R=301,L] + RewriteCond %{HTTP_HOST} =filebot.net [NC] RewriteRule ^(.*)$ http://www.filebot.net/$1 [R=301,L] -# RewriteCond %{HTTP_HOST} =www.filebot.net [NC] -# RewriteRule ^scripts\/(.*)$ https://github.com/filebot/scripts/blob/master/$1 [R=301,L] - # compress text, html, javascript, css, xml AddOutputFilterByType DEFLATE text/plain