# PHP5 ausgeben Action php /cgi-php52/php AddHandler php52 .php # HTML als PHP übergeben AddType application/x-httpd-php .html .htm # Standarddomain definieren RewriteEngine on RewriteCond %{HTTP_HOST} !^www. [NC] RewriteCond %{HTTP_HOST} !^$ RewriteRule ^(.*) http://www.%{HTTP_HOST}/$1 [R=301] # Dateiaufruf verhindern order allow,deny deny from all # Fehlerbehandlung ErrorDocument 401 http://www.klinglers.at/ ErrorDocument 403 http://www.klinglers.at/ ErrorDocument 404 http://www.klinglers.at/ ErrorDocument 500 http://www.klinglers.at/ # Komprimierung-Gzip SetOutputFilter DEFLATE # Accept-Encoding Header append Vary Accept-Encoding # Expire-Datum ExpiresActive On ExpiresDefault "access plus 1 minutes" ExpiresByType text/htm "access plus 1 minutes" ExpiresByType text/css "access plus 1 months" ExpiresByType text/javascript "access plus 1 months" ExpiresByType text/plain "access plus 1 months" ExpiresByType application/javascript "access plus 1 months" ExpiresByType application/x-javascript "access plus 1 months" ExpiresByType application/x-shockwave-flash "access plus 1 months" ExpiresByType image/png "access plus 1 years" ExpiresByType image/jpg "access plus 1 years" ExpiresByType image/jpeg "access plus 1 years" ExpiresByType image/gif "access plus 1 years" ExpiresByType image/x-icon "access plus 1 years" # Etags abschalten FileETag None