mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-07-12 08:47:33 +00:00
Update Simple URLs
parent
d9d5a093d1
commit
5b1ed337e9
@ -11,4 +11,18 @@ In nginx.conf:
|
|||||||
|
|
||||||
## Apache
|
## 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.
|
Loading…
x
Reference in New Issue
Block a user