[BUGFIX] Prepend current path to versionNumberInFilename RewriteRule 11/49111/2
authorMarco Huber <mail@marco-huber.de>
Thu, 14 Jul 2016 15:39:15 +0000 (17:39 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 19 Jul 2016 19:08:22 +0000 (21:08 +0200)
For Apache 2.2 the current location is needed in the RewriteRule for the
versionNumberInFilename feature.

Resolves: #77098
Releases: master, 7.6, 6.2
Change-Id: I94fea70473d7598a00cfcf8b9ed4f464661c369b
Reviewed-on: https://review.typo3.org/49111
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
_.htaccess

index a94535f..cb83499 100644 (file)
@@ -281,7 +281,7 @@ AddDefaultCharset utf-8
        # IMPORTANT: This rule has to be the very first RewriteCond in order to work!
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
-       RewriteRule ^(.+)\.(\d+)\.(php|js|css|png|jpg|gif|gzip)$ $1.$3 [L]
+       RewriteRule ^(.+)\.(\d+)\.(php|js|css|png|jpg|gif|gzip)$ %{ENV:CWD}$1.$3 [L]
 
        # Access block for folders
        RewriteRule _(?:recycler|temp)_/ - [F]