fix: 🐛 fix handling of URLS (now uses config file prefix)
This commit is contained in:
parent
c60b052951
commit
0f2634749d
2 changed files with 17 additions and 5 deletions
|
@ -17,6 +17,10 @@ RewriteRule ^/?raw/(.*)$ raw/%{HTTP_HOST}/$1 [L,END]
|
|||
# RewriteCond %{HTTPS} !on
|
||||
# RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L,END]
|
||||
|
||||
RewriteCond %{REQUEST_URI} !^/api/
|
||||
RewriteCond %{REQUEST_URI} /\w+$
|
||||
RewriteRule (.*) $1/ [R=301,L,END]
|
||||
|
||||
RewriteCond %{REQUEST_URI} !^/?(src/dbtest\.php|static|raw|robots\.txt).*
|
||||
RewriteRule (.*) src/router.php
|
||||
|
||||
|
@ -30,4 +34,4 @@ Options +Indexes
|
|||
|
||||
<filesMatch ".(js)$">
|
||||
Header set Cache-Control "max-age=60, public"
|
||||
</filesMatch>
|
||||
</filesMatch>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue