From 3051d69ab33537863bf5fc2a18d2da684ca57e38 Mon Sep 17 00:00:00 2001
From: Ben Harris
Date: Tue, 9 Jul 2019 00:54:53 -0400
Subject: [PATCH] show pretty urls
---
README.md | 11 ++++++++++-
index.php | 4 ++--
rfcs/index.php | 4 ++--
3 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index 2a1a1a5..6a12514 100644
--- a/README.md
+++ b/README.md
@@ -4,4 +4,13 @@ Similar to [khuxkm's previous attempt](https://github.com/tildetown/tilde-rfcs),
However, unlike that attempt, this system will use YAML front-matter.
-See [RFC 0](https://rfc.tildeverse.org/rfcs/?0) for more info.
+See [RFC 0](https://rfc.tildeverse.org/rfcs/0) for more info.
+
+## nginx configs
+```
+location ~* ^/rfcs/(.+)$ {
+ try_files $uri $uri/ /rfcs/index.php?$1;
+ include snippets/php.conf;
+}
+```
+
diff --git a/index.php b/index.php
index 9310cde..6a1edc2 100644
--- a/index.php
+++ b/index.php
@@ -10,7 +10,7 @@
unless otherwise stated within the Standards document, are invalid.
@@ -18,7 +18,7 @@
This system aims to help codify some things about Tildeverse tilde servers.
-
+
An RFC should be submitted as a PR to the git repo.
diff --git a/rfcs/index.php b/rfcs/index.php
index ee0fbba..d5662bb 100644
--- a/rfcs/index.php
+++ b/rfcs/index.php
@@ -81,7 +81,7 @@
- ">RFC =$rfc["num"]?>: =$rfc["yml"]['title']?>
+ ">RFC =$rfc["num"]?>: =$rfc["yml"]['title']?>
@@ -90,7 +90,7 @@
- ">Draft =$draft["num"]?>: =$draft["yml"]["title"]?>
+ ">Draft =$draft["num"]?>: =$draft["yml"]["title"]?>