forked from RobinCK/kasseler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
78 lines (63 loc) · 2.29 KB
/
.htaccess
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#################################################
## Kasseler CMS 2.x: Content Management System ##
#################################################
## ##
## Copyright (c)2007-2009 by Igor Ognichenko ##
## http://www.kasseler-cms.net/ ##
#################################################
#php_value max_input_time 600
#php_value memory_limit 1400M
#php_value post_max_size 800M
#php_value upload_max_filesize 700M
#AddDefaultCharset windows-1251
DirectoryIndex index.php index.html index.htm
ErrorDocument 400 /?http_error=400
ErrorDocument 403 /?http_error=403
ErrorDocument 404 /?http_error=404
ErrorDocument 414 /?http_error=414
ErrorDocument 500 /?http_error=500
ErrorDocument 503 /?http_error=503
#Options -Indexes
#Options +FollowSymlinks
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
#XSS
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule ^(.*)$ index.php [F,L]
#tpl file no view
RedirectMatch (.*)\.tpl$ http://www.kasseler-cms.net/
RewriteRule ^@(.*)$ /index.php?module=account&do=user&id=$1 [L]
RewriteRule ^ref=([a-zA-Z0-9\.\-]+)$ /index.php?module=top_site&do=referer&id=$1 [L]
#RewriteCond %{HTTPS} !=on
#RewriteCond %{HTTP_HOST} kasseler-cms.net [OR]
#RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI}
RewriteCond %{REQUEST_URI} !^.+\.jpg|jpeg|gif|png|bmp|mp3|flv$ [NC,OR]
RewriteCond %{REQUEST_URI} ^.+\.php\.(.*){3,5}$ [NC]
RewriteRule ^uploads/(.*)$ engine.php?do=download&file=$1 [N]
RewriteRule ^index.html$ /index.php [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?mod_rewrite=$1 [L,QSA]
</IfModule>
<ifmodule mod_expires.c>
<filesmatch "\.(jpg|jpeg|bmp|gif|png|css|js)$">
ExpiresActive on
ExpiresDefault "access plus 1 year"
</filesmatch>
</ifmodule>
#Restrict access to files
<Files "\.(inc|sql|back|cache|tpl|log|eml)$">
order allow,deny
deny from all
</Files>
#Allow access to certain ip
#order allow deny
#deny from all
#allow from 127.0.0.1
#Deny access to certain ip
#order allow deny
#deny from all
#deny from 127.0.0.1>>>>>>> .r114