@@ -38,7 +38,7 @@ IndexIgnore *
38
38
RewriteRule ^index/(.+?)/$ index.php?page=$1 [L,QSA]
39
39
40
40
# skip all files and directories from rules below
41
- RewriteCond %{REQUEST_FILENAME} -d [OR]
41
+ RewriteCond %{REQUEST_FILENAME} -d [OR]
42
42
RewriteCond %{REQUEST_FILENAME} -f [OR]
43
43
RewriteCond %{REQUEST_FILENAME} -l
44
44
RewriteRule ^ - [L]
@@ -49,15 +49,15 @@ IndexIgnore *
49
49
RewriteRule .* %1/index.php?page=%2 [L ]
50
50
51
51
# Checks to see if the user is attempting to access a valid file,
52
- # such as an image or css document, if this isn't true it sends the
53
- # request to the front controller, index.php
52
+ # such as an image or css document, if this isn't true it sends the
53
+ # request to the front controller, index.php
54
54
RewriteCond %{REQUEST_FILENAME} !-f
55
55
RewriteCond %{REQUEST_FILENAME} !-d
56
56
RewriteRule ^(.*)$ index.php/$1 [L]
57
57
58
58
# Ensure Authorization header is passed along
59
- RewriteCond %{HTTP:Authorization} .
60
- RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization }]
59
+ RewriteCond %{HTTP:Authorization} .
60
+ RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization }]
61
61
62
62
# Deny Access to Hidden Files and Directories
63
63
RewriteCond %{SCRIPT_FILENAME} -d [OR]
@@ -80,6 +80,10 @@ IndexIgnore *
80
80
RewriteRule ^vendor/(.*)?$ / [F,L]
81
81
RewriteRule ^composer\.(lock|json)$ / [F,L]
82
82
83
+ # Disabling TRACE Method to prevent access to sensitive header information
84
+ RewriteCond %{REQUEST_METHOD} ^TRACE
85
+ RewriteRule .* - [F]
86
+
83
87
</IfModule >
84
88
85
89
# Extra Security Headers
0 commit comments