[TYPO3-core] FYI: updated NEWS and advanced.htaccess for proper rewrite rule
Steffen Kamper
info at sk-typo3.de
Mon May 3 12:16:31 CEST 2010
Hi,
this is the new rewrite rule, please notice:
If versioning is done inside the filename (by setting
$TYPO3_CONF_VARS[BE][versionNumberInFilename] to true) you need this
line as the first rewrite rule in .htaccess:
# Rule for versioned static files (see
$TYPO3_CONF_VARS[BE][versionNumberInFilename])
RewriteRule ^(.+)\.(.+\d)\.(php|js|css|png|jpg|gif|gzip)$ $1.$3 [L]
IMPORTANT: this rule has to be the very first rule to work properly,
at least it has to be placed before the (^typo3...) rewrite rule
The rule was improved to work also with compression enabled.
I also inserted the rule in misc/advanced.htaccess
vg Steffen
More information about the TYPO3-team-core
mailing list