-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
37 lines (27 loc) · 925 Bytes
/
.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
Options -Indexes
#php_value memory_limit 64M
#php_value upload_max_filesize 20M
#php_value post_max_size 21M
AddDefaultCharset UTF-8
#php_flag display_errors on
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} !=localhost
RewriteCond %{HTTP_HOST} !=127.0.0.1
RewriteCond %{HTTP_HOST} !=cms2.gw.lt
RewriteCond %{REMOTE_ADDR} !=127.0.0.1
RewriteCond %{REMOTE_ADDR} !=::1
RewriteCond %{QUERY_STRING} !(^|&)sys_call=1
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(\.png|\.jpg|\.gif|\.jpeg|\.bmp|\.css|\.js)$
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
#leisti prie generuojamo pav pridet .jpg
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} (/tools/img/)
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
<Files README.md>
Deny from all
</Files>