mirror of
https://github.com/flextype/flextype.git
synced 2025-08-07 05:36:54 +02:00
chore(core): .htaccess updates
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
|
||||
RewriteEngine On
|
||||
|
||||
RewriteBase /flextype/
|
||||
RewriteBase /
|
||||
|
||||
## Begin - Exploits
|
||||
# If you experience problems on your site block out the operations listed below
|
||||
@@ -55,15 +55,15 @@ RewriteRule .* index.php [L]
|
||||
# Block all direct access for these folders
|
||||
RewriteRule ^(\.git|src|var|tests)/(.*) error [F]
|
||||
# Block access to specific file types for these system folders
|
||||
RewriteRule ^(src|vendor)/(.*)\.(txt|xml|md|html|yaml|yml|php|pl|py|cgi|twig|sh|bat)$ error [F]
|
||||
RewriteRule ^(src|vendor)/(.*)\.(txt|xml|md|html|yaml|yml|php|pl|py|cgi|twig|sh|bat|neon|json)$ error [F]
|
||||
# Block access to specific file types for these project folders
|
||||
RewriteRule ^(project)/(.*)\.(txt|md|yaml|yml|php|pl|py|cgi|twig|html|sh|bat)$ error [F]
|
||||
RewriteRule ^(project)/(.*)\.(txt|md|yaml|yml|php|pl|py|cgi|twig|html|sh|bat|neon|json)$ error [F]
|
||||
# Block all direct access to .md files:
|
||||
RewriteRule \.md$ error [F]
|
||||
# Block all direct access to files and folders beginning with a dot
|
||||
RewriteRule (^|/)\.(?!well-known) - [F]
|
||||
# Block access to specific files in the root folder
|
||||
RewriteRule ^(LICENSE\.txt|composer\.lock|composer\.json|\.htaccess)$ error [F]
|
||||
RewriteRule ^(phpstan\.neon|phpunit\.xml|BACKERS\.md|CHANGELOG\.md|CONTRIBUTING\.md|README\.md|LICENSE\.txt|composer\.lock|composer\.json|\.htaccess)$ error [F]
|
||||
## End - Security
|
||||
|
||||
## Begin - Rewrite rules for SEO improvements.
|
||||
|
Reference in New Issue
Block a user