Update Simple URLs

Ruan 2020-09-08 02:56:25 +00:00
parent f45f5ce781
commit 592afdba4f

@ -13,16 +13,17 @@ In nginx.conf:
Note: Untested Note: Untested
1) Enable `simple_urls` in `settings.php` 1) Create a file named `.htaccess` in the same folder as `index.php`
2) Create a file named `.htaccess` in the same folder as `index.php` 2) Paste this into `.htaccess`:
3) Paste this into `.htaccess`:
``` ```
Options -MultiViews
RewriteEngine On RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteRule ^ index.php [QSA,L] RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^(inc) - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
``` ```
4) Visit `/bans/` (e.g. "example.com/punishments/bans/") and check if it works as expected. 3) Visit `/bans/` (e.g. "example.com/punishments/bans/") and check if it works as expected.