-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.htaccess
38 lines (32 loc) · 1.19 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
Options +Indexes
# Peradresuoti viska i saugu protokola
# RewriteEngine On
# RewriteCond %{HTTPS} off
# RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
<IfModule mod_php5.c>
php_flag magic_quotes_gpc off
php_flag magic_quotes_sybase off
php_flag register_globals off
php_flag session.auto_start off
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_flag mbstring.encoding_translation off
#php_value allow_call_time_pass_reference on
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine on
#kai kuriuose netikusiuose hostinguose reikia
#RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|images|javascript|siuntiniai|stiliai|(.*).(png|js|jpg|css|gif|ico|jpeg|txt|xml)$)
RewriteRule ^(.*)$ index.php?id=$1 [L]
</IfModule>
<IfModule mod_headers.c>
<FilesMatch "\.(xml|png|jpg|gif|css|js|txt|mp3)$">
Header set Cache-Control "max-age=172800, proxy-revalidate"
</FilesMatch>
</IfModule>
Order Allow,Deny
Deny from env=draudziam
Allow from all