Update Simple URLs

Ruan 2022-04-18 06:50:34 +00:00
parent 299051059f
commit 16e737646a

@ -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.