* added github redirects for scripts again

NOTE: took 3h to figure out mod_rewrite regex pattern works on the requested path WITHOUT LEADING SLASH
This commit is contained in:
Reinhard Pointner 2014-03-20 15:30:54 +00:00
parent 8aa33750a6
commit e3e48adcae
1 changed files with 10 additions and 1 deletions

View File

@ -1,11 +1,20 @@
# redirect donate.html to paypal # redirect donate.html to paypal
redirect 301 /donate.html https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=Z8JHALZ4TXGWL&lc=US&item_name=FileBot%20Media%20Renamer&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted redirect 301 /donate.html https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=Z8JHALZ4TXGWL&lc=US&item_name=FileBot%20Media%20Renamer&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted
# redirect filebot.sourceforge.net to www.filebot.net # redirect filebot.sourceforge.net to www.filebot.net
RewriteEngine On RewriteEngine on
RewriteCond %{HTTP_HOST} =filebot.sourceforge.net [NC] RewriteCond %{HTTP_HOST} =filebot.sourceforge.net [NC]
RewriteRule ^(.*)$ http://www.filebot.net/$1 [R=301,L] RewriteRule ^(.*)$ http://www.filebot.net/$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.groovy [R=301,L]
# compress text, html, javascript, css, xml # compress text, html, javascript, css, xml
AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/html