1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Jisko htaccess
# Some mod_rewrite stuff
RewriteEngine On
#If you're having trouble with the message "No input specified.", uncomment the next line
#AddHandler application/x-httpd-php5 .php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.+) index.php/$1 [L]
# HotLinking (if you want!)
#RewriteCond %{HTTP_REFERER} !^$
#RewriteCond %{HTTP_REFERER} !yourdomain.com [NC]
#RewriteCond %{HTTP_REFERER} !images.google. [NC]
#RewriteRule .*.(jpg|gif|bmp|png)$ - [F]
# Adding some security to files/dirs
IndexIgnore *
RewriteRule ^(.*/)?\.svn/ - [F,L]
<Files ~ "\.(conf)$">
order allow,deny
deny from all
</Files>
<Files ~ "\.(log)$">
order allow,deny
deny from all
</Files>
# Expirations
FileETag MTime Size
<ifmodule mod_expires.c>
<filesmatch "\.(jpg|jpeg|gif|png|css|js)$">
ExpiresActive on
ExpiresDefault "access plus 1 year"
</filesmatch>
</ifmodule>
|