开发者社区> 问答> 正文

帝国cms在nginx设置伪静态出错

帝国cms,在/alidata/server/nginx/conf/vhosts/2.conf  server的伪静态规则那里添加了include /alidata/www/2/.htaccess  (这里的2就是我的网站文件夹名称),.htaccess的规则如下:

rewrite ^([^\.]*)/listinfo-([0-9]+)-([0-9]+)\.html$ $1/e/action/ListInfo/index.php?classid=$2&page=$3 last;
rewrite ^([^\.]*)/showinfo-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/e/action/ShowInfo.php?classid=$2&id=$3&page=$4 last;
rewrite ^([^\.]*)/infotype-([0-9]+)-([0-9]+)\.html$ $1/e/action/InfoType/index.php?ttid=$2&page=$3 last;
rewrite ^([^\.]*)/tags-(.+?)-([0-9]+)\.html$ $1/e/tags/index.php?tagname=$2&page=$3 last;
if (!-e $request_filename) {
return 404;
}

但是不起作用啊,扎心,reload的信息如下,感觉是没错的



展开
收起
searfox 2017-04-26 23:30:51 5193 0
1 条回答
写回答
取消 提交回答
  • Re帝国cmsnginx设置伪静态出错
    想问下是什么原因呢?帝国cms+nginx的伪静态该如何设置?

    -------------------------

    Re帝国cmsnginx设置伪静态出错
    没人来么?召唤大神
    2017-04-26 23:31:43
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
《Nginx 代理系统常用手册》 立即下载
CentOS Nginx PHP JAVA 多语言镜像使用手 立即下载
CentOS Nginx PHP JAVA多语言镜像使用手册 立即下载