Htaccess File

Bizarrus/Hausverwaltung/master/.htaccess

DEFLATE, REQUEST_FILENAME
#AddHandler php56-cgi .php

<IfModule mod_headers.c>
  Header append Vary Accept-Encoding
  Header append Vary User-Agent
  Header set Connection keep-alive
  Header unset ETag
  FileETag None

  <FilesMatch ".(js|css|jpg|png)$">
    Header set Cache-Control "max-age=604800"
  </FilesMatch>
</IfModule>

<IfModule mod_filter.c>
  AddOutputFilterByType DEFLATE text/plain
  AddOutputFilterByType DEFLATE text/html
  AddOutputFilterByType DEFLATE text/xml
  AddOutputFilterByType DEFLATE text/css
  AddOutputFilterByType DEFLATE application/xml
  AddOutputFilterByType DEFLATE application/xhtml+xml
  AddOutputFilterByType DEFLATE application/rss+xml
  AddOutputFilterByType DEFLATE application/javascript
  AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>
 
<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    RewriteEngine On

    # Redirect Trailing Slashes
    RewriteRule ^(.*)/$ /$1 [L,R=301]

  # Handle Template Files
  RewriteRule ^(css|js|fonts|images)/(.*)$ template/$1/$2 [QSA,L]
  
    # Handle Front Controller
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [QSA,L]
</IfModule>
Exit mobile version