summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2019-04-13 18:59:02 +0200
committerChristoph Cullmann <cullmann@kde.org>2019-04-13 18:59:02 +0200
commitdda4846c0db510fa234ef9d896016418f17b2517 (patch)
tree602c49b30d4ec54ffefb2c301412624a8e3b94cf
parent536fa7b3a572102a47ea4aa210df4cdcae5dc8c2 (diff)
add .htaccess
-rw-r--r--static/.htaccess2
-rwxr-xr-xupdate.sh3
2 files changed, 5 insertions, 0 deletions
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