Nginx 伪静态规则在 : 主目录中的 rewrite.conf文件里
location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=$1 last;
break;
}
}
Apache 伪静态规则在 : 主目录中的 .htaccess 文件里
Options -MultiViews
RewriteEngine On
# !-d 不是目录或不存在
RewriteCond %{REQUEST_FILENAME} !-d
# !-f 不是文件或不存在
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
IIS 伪静态规则在 : 主目录中的web.config 文件里