For simple URLs to work, your web server must be configured correctly.
Nginx (recommended)
In nginx.conf:
location /bans {
try_files $uri $uri/ /bans/index.php?$uri&$args;
index index.php index.html;
}
Replace each instance of /bans
with the correct directory name, if applicable.
Apache
Create a file named .htaccess
in the same folder as index.php
with the following contents:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^inc/(.*) - [NC,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.