From dda4846c0db510fa234ef9d896016418f17b2517 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Sat, 13 Apr 2019 18:59:02 +0200 Subject: [PATCH] add .htaccess --- static/.htaccess | 2 ++ update.sh | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 static/.htaccess diff --git a/static/.htaccess b/static/.htaccess new file mode 100644 index 0000000..0d5b38a --- /dev/null +++ b/static/.htaccess @@ -0,0 +1,2 @@ +# own 404 handler +ErrorDocument 404 /404.html diff --git a/update.sh b/update.sh index 8be9a0f..5908bb5 100755 --- a/update.sh +++ b/update.sh @@ -14,5 +14,8 @@ export GIT_COMMIT_SHA=`git rev-parse --verify HEAD` export GIT_COMMIT_SHA_SHORT=`git rev-parse --short HEAD` ./hugo +# copy .htaccess +cp -f static/.htaccess public + # current date date -Iseconds