From 16e737646a721f06cf65654c1be7ec37fa7a45be Mon Sep 17 00:00:00 2001 From: Ruan <2369127-ruany@users.noreply.gitlab.com> Date: Mon, 18 Apr 2022 06:50:34 +0000 Subject: [PATCH] Update Simple URLs --- Simple-URLs.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Simple-URLs.md b/Simple-URLs.md index 0bdc0ea..791a6eb 100644 --- a/Simple-URLs.md +++ b/Simple-URLs.md @@ -14,8 +14,6 @@ Replace each instance of `/bans` with the correct directory name, if applicable. ## Apache -Note: Untested. This probably doesn't work. - Create a file named `.htaccess` in the same folder as `index.php` with the following contents: ``` RewriteEngine On @@ -23,7 +21,8 @@ RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^inc/(.*) - [NC,L] -RewriteRule ^(.*) "index.php?$1" [QSA,L] +RewriteRule ^index.php - [NC,L] +RewriteRule "" "index.php?%{REQUEST_URI}&%{QUERY_STRING}" [L] ``` Visit `/bans/` (e.g. "example.com/punishments/bans/") and check if it works as expected. \ No newline at end of file