[BUGFIX] Allow URL path segments like "typo3" 88/48788/4
authorMathias Brodala <mbrodala@pagemachine.de>
Mon, 4 Jul 2016 14:16:37 +0000 (16:16 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Thu, 18 Aug 2016 15:34:38 +0000 (17:34 +0200)
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

index 821fe98..2890933 100644 (file)
@@ -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}'.