forked from easy-wi/developer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
54 lines (51 loc) · 1.51 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
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^(downloads|keys|languages|stuff|template|third_party|tmp) - [F]
</IfModule>
<IfModule mod_rewrite.c>
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_URI} !\.(png|ico|jpg)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
<IfVersion >= 2.4>
<Files .htaccess>
Require all denied
</Files>
<Files id_rsa>
Require all denied
</Files>
<FilesMatch "\.pub$">
Require all denied
</FilesMatch>
<FilesMatch "\.php$">
Require all denied
</FilesMatch>
<FilesMatch "^(admin|ajax|api|cloud|get_password|images|index|install|jobs|lend|login|protectioncheck|reboot|serverallocation|startupdates|statuscheck|switch|update|userpanel)\.php$">
Require all granted
</FilesMatch>
</IfVersion>
<IfVersion < 2.4>
<Files .htaccess>
Order deny,allow
deny from all
</Files>
<Files id_rsa>
Order deny,allow
deny from all
</Files>
<FilesMatch "\.pub$">
Order deny,allow
deny from all
</FilesMatch>
<FilesMatch "\.php$">
Order deny,allow
deny from all
</FilesMatch>
<FilesMatch "^(admin|ajax|api|cloud|get_password|images|index|install|jobs|lend|login|protectioncheck|reboot|serverallocation|startupdates|statuscheck|switch|update|userpanel)\.php$">
Order allow,deny
allow from all
</FilesMatch>
</IfVersion>