# PHP5 ausgeben
Action php /cgi-php52/php
AddHandler php52 .php

# HTML als PHP behandeln
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.ecomp.at/
ErrorDocument 403 http://www.ecomp.at/
ErrorDocument 404 http://www.ecomp.at/
ErrorDocument 500 http://www.ecomp.at/

# Expires Header
<IfModule mod_deflate.c>
  <FilesMatch "\.(css|js|xml)$">
    SetOutputFilter DEFLATE
  </FilesMatch>
</IfModule>

<IfModule mod_headers.c>
  <FilesMatch "\.(js|css|xml|gz)$">
    Header append Vary Accept-Encoding
  </FilesMatch>
</IfModule>

<IfModule mod_expires.c>
  ExpiresActive On
  ExpiresByType image/png A604800
  ExpiresByType image/gif A604800
  ExpiresByType image/jpg A604800
  ExpiresByType image/jpeg A604800
  ExpiresByType text/javascript A604800
  ExpiresByType application/x-javascript A604800
  ExpiresByType text/css A604800
</IfModule>

# Etags abschalten
FileETag None