pollux1er/sajoscol/master/.htaccess
AddType application/octet-stream .sql
AddType application/octet-stream .csv
<IfModule headers_module>
# cache images for 1 month, do not require revalidation
<FilesMatch ".(gif|jpe?g|png|flv|swf|ico)$">
Header set Cache-Control: "max-age=1296000"
</FilesMatch>
#
# cache scripts, css for 1 week, do not require revalidation
<FilesMatch ".(js|css)$">
Header set Cache-Control: "max-age=604800"
</FilesMatch>
#
# Cache txt, html, and htm pages for 1 week, require revalidation
<FilesMatch ".(txt|html?)$">
Header set Cache-Control: "max-age=604800, must-revalidate"
</FilesMatch>
#
# disable caching for dynamic files
<FilesMatch ".(pl|php|[sf]?cgi|spl|pdf)$">
Header set Cache-Control: "max-age=0, no-store"
</FilesMatch>
</IfModule>
DirectoryIndex login.php index.html index.htm index.php
<IfModule rewrite_module>
RewriteEngine On
# acces simplesaml forcé en https.
RewriteCond %{HTTPS} off
RewriteRule ^simplesaml(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [NE,L,R] # redirige en https pour l'authentification
RewriteCond %{HTTPS} off
RewriteRule ^lib/simplesaml(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [NE,L,R] # redirige en https pour l'authentification
# fin forcage https
RewriteRule ^simplesaml(.*)$ lib/simplesaml/www$1
</IfModule>
On Github License
Files
Download PDF of Htaccess file