From bf6b1fe25f5537f40affb588ebb9613c69cee6bd Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Sun, 17 Sep 2017 10:45:48 +0200 Subject: Add htaccess redirects and tests --- Makefile | 8 ++++++++ htaccess | 5 +++++ 2 files changed, 13 insertions(+) create mode 100644 htaccess diff --git a/Makefile b/Makefile index 6d5231b..af469c8 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,15 @@ all: git pull mkdocs build --clean 2>&1 | grep -v "Warning: Click detected the use of the unicode_literals" + cp -af htaccess site/.htaccess .PHONY: clean clean: rm -Rf site + +.PHONY: test +test: + curl -sSf -o /dev/null https://nuetzlich.net/gocryptfs + # These should redirect to the new names + curl -sSf -o /dev/null https://nuetzlich.net/gocryptfs/security + curl -sSf -o /dev/null https://nuetzlich.net/gocryptfs/reverse_mode diff --git a/htaccess b/htaccess new file mode 100644 index 0000000..fdd2a96 --- /dev/null +++ b/htaccess @@ -0,0 +1,5 @@ +# "security" was renamed to "forward_mode_crypto" on 2017-09-17. Keep old links working. +Redirect "/gocryptfs/security" "/gocryptfs/forward_mode_crypto" + +# "reverse_mode" was renamed to "reverse_mode_crypto" on 2017-09-17. Keep old links working. +Redirect "/gocryptfs/reverse_mode" "/gocryptfs/reverse_mode_crypto" -- cgit v1.2.3