• 智媒云图(Intell Vision):图书馆“书童” 2019-03-26
  • 京城斫琴师梵戈:中国人做东西就是和时间商量着来 2019-03-25
  • 长子县依托煤炭资源促进经济转型大发展 2019-03-21
  • 回复@“老笑头”,你的牛二逻辑确实很通透!论坛奇葩!哈哈哈哈! 2019-03-21
  • 保利尼奥:在恒大让我重拾自信 对中国球迷有特殊感情 2019-03-21
  • 山西省直机关第五届职工运动会开幕 2019-03-17
  • 中国遥感卫星地面站成功接收高分六号卫星数据 2019-03-17
  • 免费模板网标签tags 更多...
    您的位置:首页 > 建站必知 > 云优cms后台访问地址和开启Nginx伪静态

    7乐彩怎么算中奖:云优cms后台访问地址和开启Nginx伪静态

    时间:2018-06-18 来源:网上收集 作者:Tony 阅读次数 tags静态后台伪静态

    分享到:

    福彩喜乐彩15 www.bld77.com 一网友给小编推荐了下云优cms,小编安装了下,基于tp5开发的,对技术有兴趣的朋友可以去学习学习.默认的模板和手机端的页面都还可以。要求不高的朋友可以直接用来二开

    由于默认的访问后台路径和其他cms的不一样,需要开启伪静态才可以访问,下面是伪静态规则

    if (!-d $request_filename){
    
    	set $rule_0 1$rule_0;
    
    }
    
    if (!-f $request_filename){
    
    	set $rule_0 2$rule_0;
    
    }
    
    if ($rule_0 = "21"){
    
    	rewrite ^/(.*)\.(asp|aspx|asa|asax|dll|jsp|cgi|fcgi|pl)(.*)$ /404.htm;
    
    }
    
    	rewrite ^/admin/(.*).html$ /index.php?s=admin/$1 last;
    
    	rewrite ^/admin/(.*)$ /index.php?s=admin/$1 last;
    
    	rewrite ^/m/$ /index.php?s=wap/index/index last;
    
    	rewrite ^/m/(.*)_(.*)/(.*)_(.*).html$ /index.php?s=wap/show/index&etitle=$3&area=$1&cw=$4 last;
    
    	rewrite ^/m/(.*)_(.*)/(.*).html$ /index.php?s=wap/show/index&etitle=$3&area=$1 last;
    
    	rewrite ^/m/search/$ /index.php?s=wap/search/index last;
    
    	rewrite ^/m/myform/$ /index.php?s=wap/myform/index last;
    
    	rewrite ^/m/captcha/(.*)$ /index.php?s=wap/myform/captcha&id=$1 last;
    
    	rewrite ^/m/(.*)_search/$ /index.php?s=wap/search/index&area=$1 last;
    
    	rewrite ^/m/(.*)/(.*)_(.*).html$ /index.php?s=wap/show/index&etitle=$2&cw=$3 last;
    
    	rewrite ^/m/(.*)_tag/([\s\S]*)$ /index.php?s=wap/tag/index&title=$2&area=$1 last;
    
    	rewrite ^/m/tag/([\s\S]*)$ /index.php?s=wap/tag/index&title=$1 last;
    
    	rewrite ^/m/(.*)/(.*).html$ /index.php?s=wap/show/index&etitle=$2 last;
    
    	rewrite ^/m/(.*)_(.*)/$ /index.php?s=wap/category/index&ctitle=$2&area=$1 last;
    
    	rewrite ^/m/(.*)_(.*)/page/(.*)$ /index.php?s=wap/category/index&ctitle=$2&area=$1&page=$3 last;
    
    	rewrite ^/m/(.*)/$ /index.php?s=wap/category/index&ctitle=$1 last;
    
    	rewrite ^/m/(.*)/page/(.*)$ /index.php?s=wap/category/index&ctitle=$1&page=$2 last;
    
    	rewrite ^/m/(.*).html$ /index.php?s=wap/index/index&area=$1 last;
    
    	rewrite ^/statics/ueditor/dialogs/(.*)/(.*).html$ /statics/ueditor/dialogs/$1/$2.html last;
    
    	rewrite ^/index(.*)/$ /index.php?s=index/index/index/$1 last;
    
    	rewrite ^/(.*)_(.*)/(.*)_(.*).html$ /index.php?s=index/show/index&etitle=$3&area=$1&cw=$4 last;
    
    	rewrite ^/(.*)_(.*)/(.*).html$ /index.php?s=index/show/index&etitle=$3&area=$1 last;
    
    	rewrite ^/myform/$ /index.php?s=index/myform/index last;
    
    	rewrite ^/(.*)_myform/$ /index.php?s=index/myform/index&area=$1 last;
    
    	rewrite ^/captcha/(.*)$ /index.php?s=index/myform/captcha&id=$1 last;
    
    	rewrite ^/(.*)_captcha/(.*)$ /index.php?s=index/myform/captcha&area=$1&id=$2 last;
    
    	rewrite ^/search/$ /index.php?s=index/search/index last;
    
    	rewrite ^/search/page/(.*)$ /index.php?s=index/search/index&page=$1 last;
    
    	rewrite ^/(.*)_search/$ /index.php?s=index/search/index&area=$1 last;
    
    	rewrite ^/(.*)/(.*)_(.*).html$ /index.php?s=index/show/index&etitle=$2&cw=$3 last;
    
    	rewrite ^/(.*)/(.*).html$ /index.php?s=index/show/index&etitle=$2 last;
    
    	rewrite ^/(.*)_tag/([\s\S]*)$ /index.php?s=index/tag/index&title=$2&area=$1 last;
    
    	rewrite ^/tag/([\s\S]*)$ /index.php?s=index/tag/index&title=$1 last;
    
    	rewrite ^/(.*)_(.*)/$ /index.php?s=index/category/index&ctitle=$2&area=$1 last;
    
    	rewrite ^/(.*)_(.*)/page/(.*)$ /index.php?s=index/category/index&ctitle=$2&area=$1&page=$3 last;
    
    	rewrite ^/(.*)/$ /index.php?s=index/category/index&ctitle=$1 last;
    
    	rewrite ^/(.*)/page/(.*)$ /index.php?s=index/category/index&ctitle=$1&page=$2 last;
    
    	rewrite ^/(.*).html$ /index.php?s=index/index/index&area=$1 last;

    然后通过  你的域名/admin/index/login 访问

    云优cms后台访问地址和开启Nginx伪静态

    本文地址://www.freemoban.com/jzbz/2018/0618/3038.html

    猜你喜欢
    栏目推荐
    模板推荐

    Copyright:2014-2018 www.freemoban.com Corporation,All Rights Reserved 免费模板网 版权所有 鄂ICP备17019132号

    免责声明:本站部分资源来自互联网收集,版权归原创者所有,如果侵犯了你的权益,请通知我们,我们会及时删除侵权内容,谢谢合作!

    建站咨询QQ
  • 智媒云图(Intell Vision):图书馆“书童” 2019-03-26
  • 京城斫琴师梵戈:中国人做东西就是和时间商量着来 2019-03-25
  • 长子县依托煤炭资源促进经济转型大发展 2019-03-21
  • 回复@“老笑头”,你的牛二逻辑确实很通透!论坛奇葩!哈哈哈哈! 2019-03-21
  • 保利尼奥:在恒大让我重拾自信 对中国球迷有特殊感情 2019-03-21
  • 山西省直机关第五届职工运动会开幕 2019-03-17
  • 中国遥感卫星地面站成功接收高分六号卫星数据 2019-03-17