We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 46ee667 + 7d4f9a7 commit 14ec142Copy full SHA for 14ec142
.htaccess.example
@@ -33,23 +33,18 @@ AddType image/x-icon .ico
33
</IfModule>
34
35
#Security
36
-<IfModule mod_rewrite.c>
37
- Options All -Indexes
38
- <Files .htaccess>
39
- order allow,deny
40
- allow from all
41
- </Files>
42
- <files wp-config.php>
43
44
- deny from all
45
- </files>
46
-</IfModule>
+Options All -Indexes
+<FilesMatch "^(readme.*|license.*|composer.*|wp-config.php|README.*)$">
+ order allow,deny
+ deny from all
+</FilesMatch>
47
48
# BEGIN WordPress
49
<IfModule mod_rewrite.c>
50
RewriteEngine On
51
RewriteBase /
52
+RewriteRule ^vendor(/|$) - [F]
53
RewriteRule ^(^\.|\/\.) /index.php [QSA,L]
54
55
RewriteRule ^index\.php$ - [L]
0 commit comments