forked from cBackup/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
34 lines (32 loc) · 797 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
<IfModule mod_version.c>
<IfVersion < 2.4>
Order allow,deny
Deny from all
<FilesMatch "^(index\.php|)$">
Allow from all
</FilesMatch>
</IfVersion>
<IfVersion >= 2.4>
Require all denied
<FilesMatch "^(index\.php|)$">
Require all granted
</FilesMatch>
</IfVersion>
</IfModule>
<IfModule !mod_version.c>
# Apache 2.2
<IfModule !mod_authz_core.c>
Order allow,deny
Deny from all
<FilesMatch "^(index\.php|)$">
Allow from all
</FilesMatch>
</IfModule>
# Apache 2.4
<IfModule mod_authz_core.c>
Require all denied
<FilesMatch "^(index\.php|)$">
Require all granted
</FilesMatch>
</IfModule>
</IfModule>