我设置栏目 专业(zy),专业下子栏目 电子商务(zy/dzsw),均为伪静态,然后配置伪静态如下:
一级列表与文章
rewrite "^/(\w+)(/|/index\.html)$" /category.php?dir=$1 last;
rewrite "^/(\w+)/index(\d+).html$" /category.php?dir=$1&page=$2 last;
rewrite "^/\w+/(\d+).html$" /article.php?id=$1 last;
rewrite "^/\w+/(\d+)(\d+).html$" /article.php?id=$1&p=$2 last;
专业
rewrite "^/zy/(\w+)(/|/index\.html)$" /category.php?dir=$1 last;
rewrite "^/zy/(\w+)/index_(\d+).html$" /category.php?dir=$1&page=$2 last;
访问一级栏目 zy 没问题,但是访问 www.xxx.com/zy/dzsw/ 提示未找到相关栏目缓存dir:zc 请更新栏目缓存或者确认栏目是否存在(20002) in iCMS://iPHP/iPHP.class.php on line 609,二级栏目是否能用伪静态?