Updated README to current version of site and added comments to .htaccess

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2018-01-02 18:26:55 +01:00
parent a5be5e2a57
commit 2a32cc7ab5
2 changed files with 23 additions and 1 deletions

View File

@ -1,10 +1,13 @@
RewriteEngine On
# rewrite jim.2martens.de to 2martens.de
RewriteCond %{HTTP_HOST} ^jim\.2martens\.de [NC]
RewriteRule ^(.*)$ https://2martens.de/$1 [L,R=301]
# custom 404 error page
ErrorDocument 404 /404.html
# sets cache header for most static files, max-age is set to one day
<filesMatch ".(css|jpg|jpeg|png|gif|js|ico|pdf)$">
Header set Cache-Control "max-age=86400, public"
</filesMatch>