From 8f0ae3b36aa1020d21477e66010c6b2146e7c222 Mon Sep 17 00:00:00 2001 From: glaszig Date: Fri, 2 Apr 2021 19:33:35 -0300 Subject: [PATCH] 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`. --- config/50-raspap-router.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/50-raspap-router.conf b/config/50-raspap-router.conf index c7634436..1c10d26f 100644 --- a/config/50-raspap-router.conf +++ b/config/50-raspap-router.conf @@ -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" }