mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-24 17:02:44 +00:00
Update Simple URLs
parent
299051059f
commit
16e737646a
@ -14,8 +14,6 @@ Replace each instance of `/bans` with the correct directory name, if applicable.
|
||||
|
||||
## Apache
|
||||
|
||||
Note: Untested. This probably doesn't work.
|
||||
|
||||
Create a file named `.htaccess` in the same folder as `index.php` with the following contents:
|
||||
```
|
||||
RewriteEngine On
|
||||
@ -23,7 +21,8 @@ RewriteCond %{REQUEST_FILENAME} -f [OR]
|
||||
RewriteCond %{REQUEST_FILENAME} -l [OR]
|
||||
RewriteCond %{REQUEST_FILENAME} -d
|
||||
RewriteRule ^inc/(.*) - [NC,L]
|
||||
RewriteRule ^(.*) "index.php?$1" [QSA,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.
|
Loading…
x
Reference in New Issue
Block a user