联系官方销售客服
1835022288
028-61286886
在wdcp里面设置伪静态,添加后,重启nginx后出错
###当存在多个子目录格式的域名时,需要多写几组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;
}
}
错误提示:Starting nginx: nginx: [emerg] duplicate location "/"
伪静态设置教程
针对cms伪静态的基础操作教程,再来系统的整理一个操作步骤,其实没那么难。
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;}