目录站和主站都用mipcms解决方案
- 时间:
- 浏览:6115
- 来源:MIP建站系统交流平台
很多小伙伴使用MIPCMS的时候,需要将MIPCMS搭建在目录中,或者是主站和目录站都使用MIPCMS,伪静态规则却不知道怎么做,那么下面就介绍一下常见的伪静态规则
nginx环境
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?s=$1 last; break;
}
}
location /mip/ {
if (!-e $request_filename){
rewrite ^/mip/(.*)$ /mip/index.php?s=$1 last; break;
}
}