首页 > 后端开发 > php教程 > 帝国cms网站搬家到阿里云下用的 nginx 怎么配置伪静态

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
发布: 2016-06-06 20:44:56
原创
967 人浏览过

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

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

回复内容:

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

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

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

<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>
登录后复制

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

相关标签:
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
Nginx/Apache 和Apache Tomcat 的区别
来自于 1970-01-01 08:00:00
0
0
0
Apache自动停
来自于 1970-01-01 08:00:00
0
0
0
apache停止
来自于 1970-01-01 08:00:00
0
0
0
apache重启失败
来自于 1970-01-01 08:00:00
0
0
0
apache出错
来自于 1970-01-01 08:00:00
0
0
0
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板