mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-07-12 08:47:33 +00:00
Update Simple URLs
parent
f45f5ce781
commit
592afdba4f
@ -13,16 +13,17 @@ In nginx.conf:
|
||||
|
||||
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`
|
||||
|
||||
3) Paste this into `.htaccess`:
|
||||
2) Paste this into `.htaccess`:
|
||||
```
|
||||
Options -MultiViews
|
||||
RewriteEngine On
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteRule ^ index.php [QSA,L]
|
||||
RewriteCond %{REQUEST_FILENAME} -f [OR]
|
||||
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.
|
Loading…
x
Reference in New Issue
Block a user