浏览代码

And also fixed the ip things...

Blocked Perl users
Image tag testing

sorry last commit for a while
Johannes Andersen 9 年之前
父节点
当前提交
bb9dbaeb56
共有 1 个文件被更改,包括 13 次插入2 次删除
  1. 13 2
      app/.htaccess

+ 13 - 2
app/.htaccess

@@ -1,3 +1,14 @@
 RewriteEngine On
-RewriteCond %{HTTP_HOST} ^www\.example\.com$
-RewriteRule ^/?$ "http\:\/\/example\.com\/" [R=301,L]
+RewriteCond %{HTTP_HOST} ^www\.musare\.com$
+RewriteRule ^/?$ "http\:\/\/musare\.com\/" [R=301,L]
+RewriteCond %{HTTP_HOST} ^107\.170\.230\.56
+RewriteRule (.*) http://www.musare.com/$1 [R=301,L]
+RewriteCond %{HTTP_USER_AGENT} libwww-perl.* 
+RewriteRule .* ? [F,L]
+<IfModule mod_expires.c>
+    ExpiresActive on
+    ExpiresByType image/jpg "access plus 1 month"    
+    ExpiresByType image/jpeg "access plus 1 month"    
+    ExpiresByType image/gif "access plus 1 month"    
+    ExpiresByType image/png "access plus 1 month"
+</IfModule>