# 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
<Files .htaccess>
order allow,deny
deny from all
</Files>

# 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
<IfModule mod_deflate.c>
  <FilesMatch "\.(html|htm|css|js|php)$">
    SetOutputFilter DEFLATE
  </FilesMatch>
</IfModule>

# Accept-Encoding
<IfModule mod_headers.c>
  Header append Vary Accept-Encoding
</IfModule>

# Expire-Datum
<IfModule mod_expires.c>
  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"
</IfModule>

# Etags abschalten
FileETag None

