Update Simple URLs

Ruan 2020-09-08 02:58:06 +00:00
parent 592afdba4f
commit 40cca7693b

@ -13,9 +13,7 @@ In nginx.conf:
Note: Untested Note: Untested
1) Create a file named `.htaccess` in the same folder as `index.php` Create a file named `.htaccess` in the same folder as `index.php` with the following contents:
2) Paste this into `.htaccess`:
``` ```
RewriteEngine On RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -f [OR]
@ -26,4 +24,4 @@ RewriteRule ^(inc) - [NC,L]
RewriteRule ^.*$ index.php [NC,L] RewriteRule ^.*$ index.php [NC,L]
``` ```
3) Visit `/bans/` (e.g. "example.com/punishments/bans/") and check if it works as expected. Visit `/bans/` (e.g. "example.com/punishments/bans/") and check if it works as expected.