帝国cms网站搬家到阿里云下用的 nginx 怎么配置伪静态


请输入图片描述

帝国的 .htaccess 文件是这样的。
搬到阿里云。求nginx 怎么配置。
网上的教程弄了没有用。。求有经验的大神指点下、谢谢了

apache php nginx centos Linux

XOX.... 10 years, 1 month ago

rt


 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;
}

帝国cms7.0规则
原载地址: http://www.sjyhome.com/empirecms/dg-url-rewrite.html

幻想郷D人儿 answered 10 years, 1 month ago

Your Answer