Home >Backend Development >PHP Tutorial >帝国cms网站搬家到阿里云下用的 nginx 怎么配置伪静态

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

WBOY
WBOYOriginal
2016-06-06 20:44:56926browse

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

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

回复内容:

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

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

rt

<code class="lang-bash">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;
}
</code>

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

<code>rewrite ^([^\.]*)/exhibition/history-([0-9]+)\.html$ $1/e/extend/exhibition/index.php?page=$1 last;
rewrite ^([^\.]*)/exhibition/history-(\.html)?$ $1/e/extend/exhibition/index.php   last;
if (!-e $request_filename) {
return 404;
}
</code>

我改成这样,好像没有效果。新手来的,求指点。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn