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



伪静态代码
location / { if (!-e $request_filename){ rewrite ^/(.*)$ /index.php?p=$1 last; } } |
这样就完成了
location / { if (!-e $request_filename){ rewrite ^/(.*)$ /index.php?p=$1 last; } } |