[TASK] Cleanup code in EXT:linkvalidator/Task
[Packages/TYPO3.CMS.git] / _.htaccess
index c1198a1..beb7c9c 100644 (file)
                </IfModule>
        </IfModule>
 
-       # Compress all output labeled with one of the following media types
+       # Compress all output labeled with one of the following media types.
+       #
+       # (!) For Apache versions below version 2.3.7 you don't need to
+       # enable `mod_filter` and can remove the `<IfModule mod_filter.c>`
+       # and `</IfModule>` lines as `AddOutputFilterByType` is still in
+       # the core directives.
+       #
+       # https://httpd.apache.org/docs/current/mod/mod_filter.html#addoutputfilterbytype
+
        <IfModule mod_filter.c>
                AddOutputFilterByType DEFLATE application/atom+xml \
                        application/javascript \
@@ -278,9 +286,8 @@ AddDefaultCharset utf-8
        # Access block for folders
        RewriteRule _(?:recycler|temp)_/ - [F]
        RewriteRule fileadmin/templates/.*\.(?:txt|ts)$ - [F]
-       RewriteRule typo3temp/var/ - [F]
-       RewriteRule ^(vendor|typo3_src) - [F]
-       RewriteRule (?:typo3conf/ext|typo3/sysext|typo3/ext)/[^/]+/(?:Configuration|Resources/Private|Tests?)/ - [F]
+       RewriteRule ^(?:vendor|typo3_src|typo3temp/var) - [F]
+       RewriteRule (?:typo3conf/ext|typo3/sysext|typo3/ext)/[^/]+/(?:Configuration|Resources/Private|Tests?|Documentation|docs?)/ - [F]
 
        # Block access to all hidden files and directories with the exception of
        # the visible content from within the `/.well-known/` hidden directory (RFC 5785).