When accessing / bbs, it was supposed to jump to / bbs/?p=install/info, but it jumped to /?

location ~ ^/bbs/.+\.php$ {
        alias   /home/www/esotalk/;
        rewrite /bbs/(.*\.php?) /$1 break;
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME  /home/www/esotalk$fastcgi_script_name;
        include        fastcgi_params;
    }
    location ~ ^/bbs($|/.*) {
        alias   /home/www/esotalk/$1;
        index   index.php index.html;

put the installation file in. When you visit / bbs, you should jump to / bbs/?p=install/info, but jump to /? p=install/info,

.

find a solution, thank you.

Php
Jul.16,2021

if it is discuz , you need to set the website link in the background to https://domain/bbs, which may be a program jump problem. Take a look at the code


put

rewrite /bbs/(.*\.php?) /$1 break;
Change

to

rewrite /bbs/((.*)\.php?(.*)) /bbs/?p=$1 break;
Menu