应用插件 版主:官方插件技术组
多网站无法创建,如何设置伪静态
类型:迅睿CMS 更新时间:2024-05-20 23:00:05 伪静态设置 多网站系统
插件 多网站系统 V4.4
应用作者 迅睿官方团队
发布时间 2019-07-08 08:10:35
更新时间 2024-05-22 12:18:21

多网站一直提示伪静态设置失败

image





这是我设置的伪静态

###当存在多个子目录格式的域名时,需要多写几组location标签:location /目录/ 


location / { 

    if (-f $request_filename) {

           break;

    }

    if ($request_filename ~* "\.(js|ico|gif|jpe?g|bmp|png|css)$") {

        break;

    }

    if (!-e $request_filename) {

        rewrite . /index.php last;

    }

}

###当存在多个子目录格式的域名时,需要多写几组location标签:location /目录/ 

location /en/ { 

    if (-f $request_filename) {

           break;

    }

    if ($request_filename ~* "\.(js|ico|gif|jpe?g|bmp|png|css)$") {

        break;

    }

    if (!-e $request_filename) {

        rewrite . /en/index.php last;

    }

}


插件教程:https://www.xunruicms.com/doc/app-423.html