• Seite weiterempfehlen
  • Kontakt
  • Druckansicht
Backend Tuning
# Optimisation settings for BE files 
<LocationMatch "/(typo3|t3lib)/"> 
	<IfModule mod_expires.c> 
		ExpiresActive on 
		ExpiresDefault "access plus 6 months" 
		ExpiresByType image/gif "access plus 6 months" 
		ExpiresByType image/png "access plus 6 months" 
		ExpiresByType text/css "access plus 6 months" 
		ExpiresByType application/x-javascript "access plus 6 months" 
		ExpiresByType text/javascript "access plus 6 months" 
		ExpiresByType image/jpeg "access plus 6 months" 
	</IfModule> 
</LocationMatch>
Frontend Tuning
# Optimisation settings for FE files 
<LocationMatch "/(fileadmin|typo3conf|typo3temp|uploads)/"> 
	# Send expiry headers for static stuff. 
	<IfModule mod_expires.c> 
		ExpiresActive on 
		ExpiresDefault "access plus 48 hours 1 seconds" 
	</IfModule> 
</LocationMatch>
Kompression
# Enable compression (reduce traffic by 70%) 
# http://httpd.apache.org/docs/2.0/mod/mod_deflate.html 
<LocationMatch "/(typo3|t3lib)/"> 
	<IfModule mod_deflate.c> 
		SetOutputFilter DEFLATE 
		
		# Netscape 4.x has some problems... 
		BrowserMatch ^Mozilla/4 gzip-only-text/html 
		
		# Netscape 4.06-4.08 have some more problems 
		BrowserMatch ^Mozilla/4\.0[678] no-gzip 
		
		# MSIE masquerades as Netscape, but it is fine 
		# BrowserMatch \bMSIE !no-gzip !gzip-only-text/html 
		
		# NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48 
		# the above regex won't work. You can use the following 
		# workaround to get the desired effect: 
		BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html 
		
		# Don't compress everything 
		SetEnvIfNoCase Request_URI \.(?i:gif|jpe?g|png)$ no-gzip dont-vary 
		SetEnvIfNoCase Request_URI \.(?i:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary 
		SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary 
		SetEnvIfNoCase Request_URI \.avi$ no-gzip dont-vary 
		SetEnvIfNoCase Request_URI \.mov$ no-gzip dont-vary 
		SetEnvIfNoCase Request_URI \.mp3$ no-gzip dont-vary 
		SetEnvIfNoCase Request_URI \.mp4$ no-gzip dont-vary 
		SetEnvIfNoCase Request_URI \.rm$ no-gzip dont-vary 
	</IfModule> 
</LocationMatch>

.htaccess Dateien aktivieren

  • ./typo3/gfx/_.htaccess
  • ./typo3/mod/user/ws/_.htaccess
  • ./typo3/sysext/t3skin/stylesheets/_.htaccess
  • ./typo3/sysext/_.htaccess
Entweder Last-Modfied entfernen oder das Etag setzen
<FilesMatch "\.(?i:ico|png|gif|js|css|jpe?g)">
	Header unset Last-Modified
</FilesMatch>
 
oder
 
# Or better . . . set sensible Etags.
FileETag MTime Size

Absicherung

Actionscript
# deny access to staticTS directory
<FilesMatch ".txt$">
    Deny from all
</FilesMatch>
 
# deny access to staticTS directory
<FilesMatch "entities">
    Deny from all
</FilesMatch>
 
<VirtualHost *>
RedirectMatch 404 /\\.svn(/|$)
</VirtualHost>