<IfModule mod_deflate.c>
  AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml text/javascript application/javascript application/x-javascript
</IfModule>

<FilesMatch "\.(jpg|jpeg|png|gif|swf|webp)$">
  Header set Cache-Control "max-age=604800, public"
</FilesMatch>

<FilesMatch "\.(txt|xml|js|css)$">
  Header set Cache-Control "max-age=86400, public"
</FilesMatch>

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^catalog/dbimg/(.*)$ - [L]
  RewriteRule ^catalog/(.*)$ /catalog/dbimg/$1 [L]
</IfModule>

<IfModule mod_autoindex.c>
  Options -Indexes
</IfModule>

<Files "*">
  Require all granted
</Files>

