espcms rewrite 法则 for nginx

[摘要]ESPCMS是一套可以帮您迅速、轻松地构建起一个强大专业的企业网站,内置多模子自定、SEO搜索优化、静态页生成、评论留言、订购、会员等常见企业网站根基成果,通过机动的插件机制还能扩展应用。

espcms rewrite 法则 for nginx,将下面的代码插手到nginx.conf即可。

location / {
      if (!-e $request_filename) {
        rewrite ^/(article)_(list)_([0-9]+)[_]*([0-9]*)\.([a-zA-Z]+)$ /index.php?page=$4&ac=$1&at=$2&tid=$3 last;
        rewrite ^/(special)_(list)_([0-9]+)[_]*([0-9]*)\.([a-zA-Z]+)$ /index.php?page=$4&ac=$1&at=$2&sid=$3 last;
        rewrite ^/(article)_(read)_([0-9]+)\.([a-zA-Z]+)$ /index.php?ac=$1&at=$2&did=$3 last;
        rewrite ^/(form)_([a-zA-Z]+)_([0-9]+)\.([a-zA-Z]+)$ /index.php?ac=$1&at=$2&fgid=$3 last;
        rewrite ^/(forum)_(list)_([0-9]+)[_]*([0-9]*)\.([a-zA-Z]+)$ /index.php?page=$4&ac=$1&at=$2&btid=$3 last;
        rewrite ^/(forum)_(read)_([0-9]+)[_]*([0-9]*)\.([a-zA-Z]+)$ /index.php?page=$4&ac=$1&at=$2&bid=$3 last;
        rewrite ^/(forum)_(add)_([0-9]+)\.([a-zA-Z]+)$ /index.php?ac=$1&at=$2&btid=$3 last;
        rewrite ^/([a-zA-Z]+)_([a-zA-Z]+)\.([a-zA-Z]+)$ /index.php?ac=$1&at=$2 last;
        rewrite ^/(public)_([a-zA-Z]+)_([\.0-9a-zA-Z]+)\.([a-zA-Z]+)$ /index.php?ac=$1&at=$2&rd=$3 last;
        rewrite ^/(order)_([a-zA-Z]+)_([0-9]+)\.([a-zA-Z]+)$ /index.php?ac=$1&at=$2&did=$3 last;
        rewrite ^/(ordermain)_(list)_([0-9]+)[_]*([0-9]*)\.([a-zA-Z]+)$ /index.php?page=$4&ac=$1&at=$2 last;
        rewrite ^/(ordermain)_([a-zA-Z]+)_([0-9]+)\.([a-zA-Z]+)$ /index.php?ac=$1&at=$2&oid=$3 last;
        rewrite ^/(forummain)_(list)_([0-9]+)[_]*([0-9]*)\.([a-zA-Z]+)$ /index.php?page=$4&ac=$1&at=$2 last;
        rewrite ^/(forummain)_([a-zA-Z]+)_([0-9]+)\.([a-zA-Z]+)$ /index.php?ac=$1&at=$2&bid=$3 last;
        }

    }espcms下载

ESPCMS易思企业网站打点系统 v4.3.11.08.05 UTF8下载

界面预览

分享到

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/10670.html