Fix for #803 by @mp035

This commit is contained in:
billz
2021-03-02 14:37:50 +00:00
parent d6570cbc41
commit 33ac6d26cf
2 changed files with 23 additions and 7 deletions

View File

@@ -2,8 +2,8 @@ server.modules += (
"mod_rewrite",
)
$HTTP["url"] =~ "^/(?!(dist|app|ajax|config)).*" {
url.rewrite-once = (
"^/[^\?]*(\?.*)?" => "/index.php$1"
)
$HTTP["url"] =~ "^/REPLACE_ME/(?!(dist|app|ajax|config)).*" {
url.rewrite-once = ( "^/REPLACE_ME/(.*?)(\?.+)?$"=>"/REPLACE_ME/index.php/$1?$2" )
server.error-handler-404 = "/REPLACE_ME/index.php"
}