From 78336a820355b525fcda5731ca4bdcc3ef133361 Mon Sep 17 00:00:00 2001 From: Jeppe Ernst Date: Sun, 22 Apr 2018 10:36:18 +0200 Subject: [PATCH] add static file redirects --- .htaccess | 8 ++++++++ README.md | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .htaccess diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..cfe8ba6 --- /dev/null +++ b/.htaccess @@ -0,0 +1,8 @@ +# Redirect to new locations +Redirect /vedtaegter.pdf /assets/files/vedtaegter.pdf +Redirect /PapesBrev.pdf /assets/files/PapesBrevTilTeleindustrien.pdf +Redirect /PapeLyver.pdf /assets/files/PapeLyver.pdf +Redirect /FT-notat.pdf /assets/files/FT-notat.pdf + +# template for redirects (never uncomment and use this line as is!) +#Redirect / /assets/files/ \ No newline at end of file diff --git a/README.md b/README.md index e1af83b..2ad80ee 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ If not using Docker, it's **important** that you build the site with `JEKYLL_ENV Make sure that you have created a file in `_scripts/` called `config.sh`, (protip: just duplicate the `config-example.sh` file, and set the correct values, you should only need to change username and password.) Then you can build the site ande deploy it by running `docker-compose -f docker-compose-deploy.yml up` This will execute a Docker container and do the following: -1. Build the site **but** fail if there are any Frontmatter +1. Build the site **but** fail if there are any Frontmatter errors 2. Upload the contents of the `_site/` directory to the FTP server 3. That's it…