• <tr id='Tu29N0'><strong id='Tu29N0'></strong><small id='Tu29N0'></small><button id='Tu29N0'></button><li id='Tu29N0'><noscript id='Tu29N0'><big id='Tu29N0'></big><dt id='Tu29N0'></dt></noscript></li></tr><ol id='Tu29N0'><option id='Tu29N0'><table id='Tu29N0'><blockquote id='Tu29N0'><tbody id='Tu29N0'></tbody></blockquote></table></option></ol><u id='Tu29N0'></u><kbd id='Tu29N0'><kbd id='Tu29N0'></kbd></kbd>

    <code id='Tu29N0'><strong id='Tu29N0'></strong></code>

    <fieldset id='Tu29N0'></fieldset>
          <span id='Tu29N0'></span>

              <ins id='Tu29N0'></ins>
              <acronym id='Tu29N0'><em id='Tu29N0'></em><td id='Tu29N0'><div id='Tu29N0'></div></td></acronym><address id='Tu29N0'><big id='Tu29N0'><big id='Tu29N0'></big><legend id='Tu29N0'></legend></big></address>

              <i id='Tu29N0'><div id='Tu29N0'><ins id='Tu29N0'></ins></div></i>
              <i id='Tu29N0'></i>
            1. <dl id='Tu29N0'></dl>
              1. <blockquote id='Tu29N0'><q id='Tu29N0'><noscript id='Tu29N0'></noscript><dt id='Tu29N0'></dt></q></blockquote><noframes id='Tu29N0'><i id='Tu29N0'></i>
                云优CMS阿里云增强虚拟主机nginx伪静态配置教程

                发布日期:2021-01-16 作者:云优CMS 人气:1264

                登录阿里云语气中透着坚决空间面板-高级环境设置-NGINX设置 复制下面到配置框里即可,只适用于阿里云增强主机nginx环境,其他环境请勿适用

                location / {
                    rewrite ^/statics/ueditor/dialogs/(.*)/(.*).html$ /statics/ueditor/dialogs/$1/$2.html break;
                    rewrite ^/phpMyAdmin/(.*)$ /phpMyAdmin/$1 last;
                    rewrite ^/404.htm$ /index.php?s=index/index/empty404 last;
                    rewrite ^/admin/(.*).html$ /index.php?s=admin/$1 last;
                    rewrite ^/admin/(.*)$ /index.php?s=admin/$1 last;
                    rewrite ^/config/(.*)$ /404.htm last;
                    rewrite ^/m/$ /index.php?s=wap/index/index last;
                    rewrite ^/m/myform/$ /index.php?s=wap/myform/index last;
                    rewrite ^/m/captcha/(\d*)$ /index.php?s=wap/myform/captcha&id=$1 last;
                    rewrite ^/m/search/$ /index.php?s=wap/search/index last;
                    rewrite ^/m/(.*)_search/$ /index.php?s=wap/search/index&area=$1 last;
                    rewrite ^/m/tag/([\s\S]*)$ /index.php?s=wap/tag/index&title=$1 last;
                    rewrite ^/m/(.*)_tag/([\s\S]*)$ /index.php?s=wap/tag/index&title=$2&area=$1 last;
                    rewrite ^/m/(.*)/(.*)_(.*)/(.*)_(.*).html$ /index.php?s=wap/show/index&etitle=$4&ctitle=$1/$3&area=$2&cw=$5 last;
                    rewrite ^/m/(.*)_(.*)/(.*)_(.*).html$ /index.php?s=wap/show/index&etitle=$3&ctitle=$2&area=$1&cw=$4 last;
                    rewrite ^/m/(.*)/(.*)_(.*)/(.*).html$ /index.php?s=wap/show/index&etitle=$4&ctitle=$1/$3&area=$2 last;
                    rewrite ^/m/(.*)_(.*)/(.*).html$ /index.php?s=wap/show/index&etitle=$3&ctitle=$2&area=$1 last;
                    rewrite ^/m/(.*)/(.*)_(.*).html$ /index.php?s=wap/show/index&etitle=$2&ctitle=$1&cw=$3 last;
                    rewrite ^/m/(.*)/(.*).html$ /index.php?s=wap/show/index&etitle=$2&ctitle=$1 last;
                    rewrite ^/m/(.*)/(.*)_(.*)/$ /index.php?s=wap/category/index&ctitle=$1/$3&area=$2 last;
                    rewrite ^/m/(.*)_(.*)/$ /index.php?s=wap/category/index&ctitle=$2&area=$1 last;
                    rewrite ^/m/(.*)/(.*)_(.*)/page/(\d*)$ /index.php?s=wap/category/index&ctitle=$1/$3&area=$2&page=$4 last;
                    rewrite ^/m/(.*)_(.*)/page/(\d*)$ /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/(\d*)$ /index.php?s=wap/category/index&ctitle=$1&page=$2 last;
                    rewrite ^/m/(.*).html$ /index.php?s=wap/index/index&area=$1 last;
                    rewrite ^/index(.*)/$ /index.php?s=index/index/index/$1 last;
                    rewrite ^/myform/$ /index.php?s=index/myform/index last;
                    rewrite ^/(.*)_myform/$ /index.php?s=index/myform/index&area=$1 last;
                    rewrite ^/captcha/(\d*)$ /index.php?s=index/myform/captcha&id=$1 last;
                    rewrite ^/(.*)_captcha/(\d*)$ /index.php?s=index/myform/captcha&area=$1&id=$2 last;
                    rewrite ^/search/$ /index.php?s=index/search/index last;
                    rewrite ^/search/page/(\d*)$ /index.php?s=index/search/index&page=$1 last;
                    rewrite ^/search/key/(.*)/page/(\d*)$ /index.php?s=index/search/index&key=$1&page=$2 last;
                    rewrite ^/(.*)_search/$ /index.php?s=index/search/index&area=$1 last;
                    rewrite ^/(.*)_search/page/(\d*)$ /index.php?s=index/search/index&area=$1&page=$2 last;
                    rewrite ^/(.*)_search/key/(.*)/page/(\d*)$ /index.php?s=index/search/index&area=$1&key=$2&page=$3 last;
                    rewrite ^/(.*)_tag/([\s\S]*)/page/(\d*)$ /index.php?s=index/tag/index&title=$2&area=$1&page=$3 last;
                    rewrite ^/(.*)_tag/([\s\S]*)$ /index.php?s=index/tag/index&title=$2&area=$1 last;
                    rewrite ^/tag/([\s\S]*)/page/(\d*)$ /index.php?s=index/tag/index&title=$1&page=$2 last;
                    rewrite ^/tag/([\s\S]*)$ /index.php?s=index/tag/index&title=$1 last;
                    rewrite ^/(.*)/(.*)_(.*)/(.*)_(.*).html$ /index.php?s=index/show/index&etitle=$4&ctitle=$1/$3&area=$2&cw=$5 last;
                    rewrite ^/(.*)_(.*)/(.*)_(.*).html$ /index.php?s=index/show/index&etitle=$3&ctitle=$2&area=$1&cw=$4 last;
                    rewrite ^/(.*)/(.*)_(.*)/(.*).html$ /index.php?s=index/show/index&etitle=$4&ctitle=$1/$3&area=$2 last;
                    rewrite ^/(.*)_(.*)/(.*).html$ /index.php?s=index/show/index&etitle=$3&ctitle=$2&area=$1 last;
                    rewrite ^/(.*)/(.*)_(.*).html$ /index.php?s=index/show/index&etitle=$2&ctitle=$1&cw=$3 last;
                    rewrite ^/(.*)/(.*)_(.*)/$ /index.php?s=index/category/index&ctitle=$1/$3&area=$2 last;
                    rewrite ^/(.*)_(.*)/$ /index.php?s=index/category/index&ctitle=$2&area=$1 last;
                    rewrite ^/(.*)/(.*)_(.*)/page/(\d*)$ /index.php?s=index/category/index&ctitle=$1/$3&area=$2&page=$4 last;
                    rewrite ^/(.*)_(.*)/page/(\d*)$ /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/(\d*)$ /index.php?s=index/category/index&ctitle=$1&page=$2 last;
                    rewrite ^/index.html$ /index.php?s=index/index/index last;
                    rewrite ^/(.*)/(.*).html$ /index.php?s=index/show/index&etitle=$2&ctitle=$1 last;
                    rewrite ^/(.*).html$ /index.php?s=index/index/index&area=$1 last;
                }
                
                location ~ /\.ht {
                    deny all;
                }


                相关新闻

                返回顶部

                拨打电话
                在线咨询