-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.htaccess
53 lines (44 loc) · 1.13 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
<FilesMatch "\.(ini|log)$">
order deny,allow
deny from all
</FilesMatch>
<Files .htaccess>
order allow,deny
deny from all
</Files>
<IfModule mod_charset.c>
CharsetSourceEnc utf-8
CharsetDefault utf-8
</IfModule>
<IfModule mod_php5.c>
php_flag short_open_tag On
php_flag suhosin.session.cryptua off
php_flag zend.ze1_compatibility_mode Off
php_flag session.auto_start off
php_flag session.use_only_cookies on
php_flag magic_quotes_gpc off
php_flag register_globals off
php_flag display_errors on
php_flag display_startup_errors off
php_flag magic_quotes_gpc off
#php_value error_reporting 7
#php_value auto_prepend_file none
#php_value auto_append_file none
#php_value xcache.cacher Off
</IfModule>
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
DirectoryIndex index.php
#Options -Indexes
AddDefaultCharset utf-8
AddCharset utf-8 *
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
</IfModule>