mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-26 01:20:27 +00:00
8f0ae3b36a
(\?.+) 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`.
9 lines
245 B
Text
9 lines
245 B
Text
server.modules += (
|
|
"mod_rewrite",
|
|
)
|
|
|
|
$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"
|
|
}
|
|
|