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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:44:56
Original
955 people have browsed it

帝国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>
Copy after login

帝国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>
Copy after login

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

Related labels:
source:php.cn
Statement of this Website
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
Latest Issues
Apache automatically stops
From 1970-01-01 08:00:00
0
0
0
apache restart failed
From 1970-01-01 08:00:00
0
0
0
apache error
From 1970-01-01 08:00:00
0
0
0
How apache logs
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template