From 5b1ed337e922baad63776c8c7c12663b634191b1 Mon Sep 17 00:00:00 2001 From: Ruan Date: Sat, 20 Jun 2020 22:50:37 +0000 Subject: [PATCH] Update Simple URLs --- Simple-URLs.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Simple-URLs.md b/Simple-URLs.md index 230e4f3..71402ff 100644 --- a/Simple-URLs.md +++ b/Simple-URLs.md @@ -11,4 +11,18 @@ In nginx.conf: ## Apache -TODO \ No newline at end of file +Note: Untested + +1) Enable `simple_urls` in `settings.php` + +2) Create a file named `.htaccess` in the same folder as `index.php` + +3) Paste this into `.htaccess`: +``` +Options -MultiViews +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-f +RewriteRule ^ index.php [QSA,L] +``` + +4) Visit `/index/` (e.g. "example.com/punishments/index/") and check if it works as expected. \ No newline at end of file