Ale-/piratebox/master/board/example.htaccess - Htaccess File

Ale-/piratebox/master/board/example.htaccess

# If you change this, remember to change the RewriteRule entry further down, too!
AddCharset utf-8 html

<Files *.txt>
Deny from all
</Files>

<Files config.pl>
Deny from all
</Files>

<IfModule mod_headers.c>
<Files *.html>
Header add Expires "Mon, 26 Jul 1997 05:00:00 GMT"
Header add Pragma "no-cache"
Header add Cache-Control "max-age=0; must-revalidate; no-cache"
Header unset Vary
</Files>
</IfModule>

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_ACCEPT} application/xhtml+xml
RewriteRule .html$ - [T=application/xhtml+xml;charset=utf-8]
</IfModule>

On Github License

Files

Download PDF of Htaccess file
HTTP_ACCEPT, no-cache, Pragma

Comments

Apache