404报错

404 Not Found

nginx/1.15.11


问题解决

1、Linux

location / {

        if (!-e $request_filename) {

                rewrite ^(.*)$ /index.php?s=/$1 last;

        }

}

2、Apache

<IfModule mod_rewrite.c&gt;
 RewriteEngine on
 RewriteBase /
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteRule ^(.*)$ index.php?s=/$1 [QSA,PT,L]
</IfModule&gt;

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注