nginx偽靜態規則重寫

流浪2024發表於2024-12-07
location / {
        if (!-e $request_filename){
                rewrite  ^/index.php/(.*)$  /index.php?s=$1  last;
                rewrite  ^/admin.php/(.*)$  /admin.php?s=$1  last;
                rewrite  ^(.*)$  /index.php?s=$1  last;   break;
        }
}

相關文章