File tree 2 files changed +8
-32
lines changed
2 files changed +8
-32
lines changed Original file line number Diff line number Diff line change 1
- # Apache 2.2
2
- <IfModule !mod_authz_core.c >
3
- Deny from all
4
- </IfModule >
5
-
6
- # Apache 2.4
7
- <IfModule mod_authz_core.c >
8
- Require all denied
9
- </IfModule >
10
- ErrorDocument 403 "403 Access Restricted. <a href='installer.php'>Go to installer</a>"
11
- <FilesMatch "\.(png|jpg|gif|GIF|PNG|JPG|jpeg|JPEG|ICO|js|css|html|xml|htm)$" >
12
- # Apache 2.2
13
- <IfModule !mod_authz_core.c >
14
- Allow from all
15
- </IfModule >
16
-
17
- # Apache 2.4
18
- <IfModule mod_authz_core.c >
19
- Require all granted
20
- </IfModule >
21
- </FilesMatch >
22
- <FilesMatch "(installer\.php|index\.php|install_form.js.php)$" >
23
- # Apache 2.2
24
- <IfModule !mod_authz_core.c >
25
- Allow from all
26
- </IfModule >
27
-
28
- # Apache 2.4
29
- <IfModule mod_authz_core.c >
30
- Require all granted
31
- </IfModule >
32
- </FilesMatch >
1
+ RewriteEngine On
2
+ RewriteRule (installer\.php|index\.php|install_form.js.php)$ - [L]
3
+ RewriteRule !.+\.(png|jpg|gif|GIF|PNG|JPG|jpeg|JPEG|ICO|js|css|html|xml|htm)$ 403.html [L]
Original file line number Diff line number Diff line change
1
+ <!doctype html>
2
+ < html >
3
+ < head > Access Restricted</ head >
4
+ < body > 403 Access Restricted. < a href ='installer.php '> Go to installer</ a > </ body >
5
+ </ html >
You can’t perform that action at this time.
0 commit comments