Update Simple URLs

Ruan 2020-06-20 22:50:37 +00:00
parent d9d5a093d1
commit 5b1ed337e9

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