From 7ee7f1849dc9c01a032d856454fa58e3acdbf03f Mon Sep 17 00:00:00 2001
From: Mathias Brodala <mbrodala@pagemachine.de>
Date: Mon, 4 Jul 2016 16:16:37 +0200
Subject: [PATCH] [BUGFIX] Allow URL path segments like "typo3"

Tighten the RewriteRule for static resource passthrough to allow for
speaking URL path segments like "typo3", "fileadmin", etc. instead of
causing a 404 error.

This issue was introduced with https://review.typo3.org/39254/

Resolves: #76928
Releases: master, 7.6, 6.2
Change-Id: I9815b7626d6a33677a3f971f452c0600141632b4
Reviewed-on: https://review.typo3.org/48788
Tested-by: Bamboo TYPO3com <info@typo3.com>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
---
 _.htaccess | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/_.htaccess b/_.htaccess
index 821fe98e7af2..289093378e9b 100644
--- a/_.htaccess
+++ b/_.htaccess
@@ -298,7 +298,7 @@ AddDefaultCharset utf-8
 
 	# Stop rewrite processing, if we are in the typo3/ directory or any other known directory
 	# NOTE: Add your additional local storages here
-	RewriteRule (?:typo3/|fileadmin/|typo3conf/|typo3temp/|uploads/|favicon\.ico) - [L]
+	RewriteRule ^(?:typo3/|fileadmin/|typo3conf/|typo3temp/|uploads/|favicon\.ico) - [L]
 
 	# If the file/symlink/directory does not exist => Redirect to index.php.
 	# For httpd.conf, you need to prefix each '%{REQUEST_FILENAME}' with '%{DOCUMENT_ROOT}'.
-- 
GitLab