DavBfr/cf/master/Skel/project/www/.htaccess - Htaccess File

DavBfr/cf/master/Skel/project/www/.htaccess

<IfModule mod_rewrite.c>
  <IfModule mod_env.c>
    SetEnv HTTP_MOD_REWRITE On
  </IfModule>

  RewriteEngine on
  RewriteRule ^r/(.*) index.php/$1 [L]
</IfModule>

ErrorDocument 400 /index.php/error/400
ErrorDocument 401 /index.php/error/401
ErrorDocument 403 /index.php/error/403
ErrorDocument 404 /index.php/error/404
ErrorDocument 500 /index.php/error/500

#FileETag None

<IfModule mod_expires.c>
  ExpiresActive On
  ExpiresDefault "access plus 1 week"

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

  <FilesMatch ".php$">
    ExpiresActive Off
    <IfModule mod_headers.c>
      Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
      Header set Pragma "no-cache"
    </IfModule>
  </FilesMatch>
</IfModule>

<IfModule mod_headers.c>
  Header set X-Content-Type-Options: "nosniff"
  Header set X-XSS-Protection: "1; mode=block"
  Header set X-Frame-Options: "sameorigin"
</IfModule>

On Github License

Files

Download PDF of Htaccess file
no-cache, Pragma

Comments

Apache