From 76d3b045d67090463366474f7f422c451e0093a0 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Fri, 5 Jul 2019 12:19:12 -0400 Subject: [PATCH] add nginx config note --- wiki/README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/wiki/README.md b/wiki/README.md index 617dea0..ecc9837 100644 --- a/wiki/README.md +++ b/wiki/README.md @@ -38,6 +38,19 @@ git push origin my-new-page # this should match the branch name you created earl * create a pull request on the [site](https://tildegit.org/team/site) repo +## deployment notes + +as of a7305c7b the wiki uses pretty urls (while still supporting the old style +of `?page=` urls). to enable this functionality, add the following location +block to your nginx configs for this site: + +``` +location ~* ^/wiki/(.+)$ { + try_files $uri $uri/ /wiki/index.php?page=$1; + include snippets/php.conf; +} +``` + thanks!~ ps. if you have any questions, ask on irc! (preferably in #team)