소스 검색

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>