Nginx环境,请打开nginx.txt文件,把里面的代码复制到配置中,下面我们以宝塔为例,
伪静态规则的文件在



伪静态代码
location / {
if (!-e $request_filename){
rewrite ^/(.*)$ /index.php?p=$1 last;
}
}
|
这样就完成了
如果是阿里云的虚拟主机,请看这个教程:《阿里云云虚拟主机Nginx系统,如何配置伪静态》



location / {
if (!-e $request_filename){
rewrite ^/(.*)$ /index.php?p=$1 last;
}
}
|