(1)
if ($fastcgi_script_name ~ "^(.+\.php)(/.+)$"){
set $path_info ;
}
(2)
if ($fastcgi_script_name ~ "^index.php/(.+)$"){
set $path_info ;
}
Access address test.com/index.php/oss/index
(1) $2 = /oss/index
(2) $1 does not have any data
(1)(2) I feel the same, but the writing method is different. Why are the results different? ? ? Waiting online
Is there a slash missing before index