From d6e59b579088b07c23a7bc2aa223d679ca3178f9 Mon Sep 17 00:00:00 2001 From: Ruan <2369127-ruany@users.noreply.gitlab.com> Date: Wed, 1 Dec 2021 05:21:28 +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 9b9644c..813f513 100644 --- a/Simple-URLs.md +++ b/Simple-URLs.md @@ -22,9 +22,8 @@ RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d -RewriteRule ^.*$ - [NC,L] -RewriteRule ^(inc) - [NC,L] -RewriteRule ^.*$ index.php [NC,L] +RewriteRule ^inc/(.*) - [NC,L] +RewriteRule ^(.*) "index.php?a=$1" [QSA,L] ``` Visit `/bans/` (e.g. "example.com/punishments/bans/") and check if it works as expected. \ No newline at end of file