foxoffire33/computerManager/master/frontend/web/.htaccess - Htaccess File

foxoffire33/computerManager/master/frontend/web/.htaccess

RewriteEngine on

RewriteCond %{HTTP_HOST} ^www.computeronderhouden.nl$
RewriteRule ^/?$ "http://computeronderhouden.nl/" [R=301,L]

ServerSignature Off
#ServerTokens Prod

RewriteCond %{HTTP_USER_AGENT} libwww-perl.*
RewriteRule .* ? [F,L]

# If a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Otherwise forward it to index.php
RewriteRule . index.php

<IfModule mod_expires.c>
  ExpiresActive on

# Favicon (cannot be renamed)
  ExpiresByType image/x-icon              "access plus 1 week"

# Media: images, video, audio
  ExpiresByType image/gif                 "access plus 1 month"
  ExpiresByType image/png                 "access plus 1 month"
  ExpiresByType image/jpg                 "access plus 1 month"
  ExpiresByType image/jpeg                "access plus 1 month"

# HTC files  (css3pie)
  ExpiresByType text/x-component          "access plus 1 month"

# Webfonts
  ExpiresByType font/truetype             "access plus 1 month"
  ExpiresByType font/opentype             "access plus 1 month"
  ExpiresByType application/x-font-woff   "access plus 1 month"
  ExpiresByType image/svg+xml             "access plus 1 month"
  ExpiresByType application/vnd.ms-fontobject "access plus 1 month"

  <IfModule mod_headers.c>
    Header append Cache-Control "public"
  </IfModule>

</IfModule>

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, HTTP_USER_AGENT, REQUEST_FILENAME

Comments

Apache