From e5f4fa47db1c9b4615676c4b05822268daf59991 Mon Sep 17 00:00:00 2001 From: ubergeek Date: Sun, 7 Jul 2019 20:18:20 -0400 Subject: [PATCH] Update 'README.md' --- README.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 44ffcaf..f3ea037 100644 --- a/README.md +++ b/README.md @@ -20,11 +20,17 @@ If you are not using apache, you'll need to add in some mechanism for the rewrit Something along these lines ~should~ work: - location / { - # This is cool because no php is touched for static content. - # include the "?$args" part so non-default permalinks doesn't break when using query string - try_files $uri $uri/ /wiki.php?page=$uri; - } + location ~ (/includes/|/media) { + } + + location / { + rewrite ^/$ /main; + rewrite ^/([A-Za-z0-9\/]+)/?$ /wiki.php?page=$1; + } + + location /index { + rewrite ^/index\.php$ /wiki.php?page=main; + } Once that's all set, you can start editing articles. Main.md is always the landing page.