fix url rewriting

(\?.+) already captures the question mark so it's not needed in the replaced string.
this actually made the `page` GET parameter be `?page` because the url wound up being `??page=foo`.
This commit is contained in:
glaszig 2021-04-02 19:33:35 -03:00 committed by GitHub
parent c84ac43185
commit 8f0ae3b36a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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