File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change 1
1
Options All -Indexes
2
+
3
+ ############################################
4
+ ## Disable PHP7/PHP8 code execution for media directory
5
+
2
6
<IfModule mod_php7.c >
3
- php_flag engine 0
7
+ php_flag engine 0
8
+ </IfModule >
9
+
10
+ <IfModule mod_php8.c >
11
+ php_flag engine 0
4
12
</IfModule >
5
13
6
14
AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi
@@ -9,17 +17,19 @@ Options -ExecCGI
9
17
<IfModule mod_rewrite.c >
10
18
11
19
############################################
12
- ## enable rewrites
20
+ ## Enable rewrites
13
21
14
22
Options +FollowSymLinks
15
23
RewriteEngine on
16
24
17
25
############################################
18
- ## never rewrite for existing files
26
+ ## Never rewrite for existing files
27
+
19
28
RewriteCond %{REQUEST_FILENAME} !-f
20
29
21
30
############################################
22
- ## rewrite everything else to get.php
31
+ ## Rewrite everything else to get.php
32
+
33
+ RewriteRule (.*) ../get.php [L]
23
34
24
- RewriteRule .* ../get.php [L]
25
35
</IfModule >
You can’t perform that action at this time.
0 commit comments