开发者社区> 问答> 正文

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

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

展开
收起
a123456678 2016-06-17 18:03:37 3048 0
2 条回答
写回答
取消 提交回答
  • 有点尴尬唉 你要寻找的东西已经被吃掉啦!

    请问您新买的ECS是Linux系统吗?

    一般帝国程序是php+mysql的,可参考一下这个教程:https://market.aliyun.com/products/56014009/cmgj000262.html#sku=biaozhunban

    2019-07-17 19:43:24
    赞同 展开评论 打赏
  • rewrite ^(1*)/listinfo-([0-9]+)-([0-9]+).html$ $1/e/action/ListInfo/index.php?classid=$2&page=$3 last;
    rewrite ^(2*)/showinfo-([0-9]+)-([0-9]+)-([0-9]+).html$ $1/e/action/ShowInfo.php?classid=$2&id=$3&page=$4 last;
    rewrite ^(3*)/infotype-([0-9]+)-([0-9]+).html$ $1/e/action/InfoType/index.php?ttid=$2&page=$3 last;
    rewrite ^(4*)/tags-(.+?)-([0-9]+).html$ $1/e/tags/index.php?tagname=$2&page=$3 last;
    if (!-e $request_filename) {
    return 404;
    }


    1. .
    2. .
    3. .
    4. .
    2019-07-17 19:43:24
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

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