[BUGFIX] Correct wording for AJAX error message
[Packages/TYPO3.CMS.git] / _.htaccess
index 725ded7..55c51ae 100644 (file)
@@ -279,7 +279,8 @@ AddDefaultCharset utf-8
        RewriteRule _(?:recycler|temp)_/ - [F]
        RewriteRule fileadmin/templates/.*\.(?:txt|ts)$ - [F]
        RewriteRule typo3temp/logs/ - [F]
-       RewriteRule (?:typo3conf/ext|typo3/sysext|typo3/ext|typo3/vendor)/[^/]+/(?:Configuration|Resources/Private|Tests?)/ - [F]
+       RewriteRule ^(vendor|typo3_src) - [F]
+       RewriteRule (?:typo3conf/ext|typo3/sysext|typo3/ext)/[^/]+/(?:Configuration|Resources/Private|Tests?)/ - [F]
 
        # Access block for files or folders starting with a dot
        RewriteCond %{SCRIPT_FILENAME} -d [OR]
@@ -314,6 +315,11 @@ AddDefaultCharset utf-8
        </IfModule>
 </FilesMatch>
 
+# Block access to vcs directories
+<IfModule mod_alias.c>
+       RedirectMatch 404 /\.(?:git|svn|hg)/
+</IfModule>
+
 ### End: Rewriting and Access ###