Login / Status
developer.Resource
Home . Development . Articles . New features in TYPO3 4.1
Sponsors
hosted by punkt.deTYPO3 and Open Source MagazineAOE Media
<<  Backend "Who is online"  Speed up Backend with .htaccess More enhancements >> 

Speed up Backend with .htaccess

TYPO3 now includes several sample .htaccess files in t3lib/ and typo3/ subdirectories to speed up loading of static (non-changing) images. Without those files all images will be reloaded each time when backend user accessed any module, navigation frame, file or page tree. This uses a lot of bandwidth and slowed servers down with HTTP requests for static (non-changing) images (for example, imagine how many additional requests will web server get when you use List module in extended mode and how much data it needs to transfer!). 

Using this feature requires certain Apache configuration. Main Apache configuration file should have "AllowOverride Indexes" directive for typo3-based web site (note that there can be also other values in AllowOverride" but "Indexes" is mandatory). To enable this functionality you need to rename _.htaccess files from the list below to .htaccess: 

  1. typo3/gfx/_.htaccess

  2. typo3/mod/user/ws/_.htaccess 

  3. typo3/sysext/_.htaccess 

  4. typo3/sysext/t3skin/stylesheets/_.htaccess 

Note: this feature requires mod_expires to be installed for Apache. If mod_expires is not installed, images will not be cached and TYPO3 will work as in previous versions. The .htaccess files will detect if mod_expires is installed and use it automatically.