mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-07-12 08:47:33 +00:00
Update Simple URLs
parent
592afdba4f
commit
40cca7693b
@ -13,9 +13,7 @@ In nginx.conf:
|
|||||||
|
|
||||||
Note: Untested
|
Note: Untested
|
||||||
|
|
||||||
1) Create a file named `.htaccess` in the same folder as `index.php`
|
Create a file named `.htaccess` in the same folder as `index.php` with the following contents:
|
||||||
|
|
||||||
2) Paste this into `.htaccess`:
|
|
||||||
```
|
```
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
RewriteCond %{REQUEST_FILENAME} -f [OR]
|
RewriteCond %{REQUEST_FILENAME} -f [OR]
|
||||||
@ -26,4 +24,4 @@ RewriteRule ^(inc) - [NC,L]
|
|||||||
RewriteRule ^.*$ index.php [NC,L]
|
RewriteRule ^.*$ index.php [NC,L]
|
||||||
```
|
```
|
||||||
|
|
||||||
3) Visit `/bans/` (e.g. "example.com/punishments/bans/") and check if it works as expected.
|
Visit `/bans/` (e.g. "example.com/punishments/bans/") and check if it works as expected.
|
Loading…
x
Reference in New Issue
Block a user