# PHP/HTML-Handler > Root

# Dateiaufruf verhindern
<Files .htaccess>
order allow,deny
deny from all
</Files>

# Verzeichnisumleitung
RewriteEngine on
RewriteCond %{HTTP_HOST} ^cc.nucom.at$
RewriteRule ^(.*)$ /dev/uid/plaze/$1 [PT,L,QSA]
RewriteEngine off

# Standarddomain definieren
#RewriteEngine on
# %{HTTP_HOST} !^www. [NC]
#RewriteCond %{HTTP_HOST} !^$
# ^(.*) http://www.%{HTTP_HOST}/$1 [R=301]

# Fehlerbehandlung
#ErrorDocument 401 http://www.plaze.at/
#ErrorDocument 403 http://www.plaze.at/
#ErrorDocument 404 http://www.plaze.at/
#ErrorDocument 500 http://www.plaze.at/

# GZip Compression
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/javascript

# 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