宏哥娱乐网:宏哥娱乐网-我们不生产资源,只做网络资源的搬运工!
当前位置:首页 > 无分类

伪静态:nginx的rewrite规则-宝塔2.9-4.0

宏哥 无分类 3729

宏哥娱乐网本次为大家分享的是伪静态:nginx的rewrite规则-宝塔2.9-4.0





location / {

            rewrite ^(.*)/lists/(\w+)/(\d+)/(.*)/$ $1/index.php?s=Home/lists/lists/id/$3/$4;

            rewrite ^(.*)/lists/(\w+)/(\d+)/$ $1/index.php?s=Home/lists/lists/id/$3;

            rewrite ^(.*)/movie/(\d+)/$ $1/index.php?s=Home/movie/Index/id/$2;

            rewrite ^(.*)/news/(\d+)/$ $1/index.php?s=Home/news/Index/id/$2;

            rewrite ^(.*)/player/(.*)/$ $1/index.php?s=Home/player/Index/$2;

            rewrite ^(.*)/down/(.*)/$ $1/index.php?s=Home/player/down/$2;

            rewrite ^(.*)/keyword/(\S+)/(.*)/$ $1/index.php?s=Home/Search/Index/keyword/$2/$3;

            rewrite ^(.*)/keyword/(\S+)/$ $1/index.php?s=Home/Search/Index/keyword/$2;

            rewrite ^(.*)/(\w+)/(\d+)/p/(\d+)/$ $1/index.php?s=Home/lists/Index/id/$3/$4;

            rewrite ^(.*)/(\w+)/(\d+)/$ $1/index.php?s=Home/lists/Index/id/$3 last;

            if (!-e $request_filename) {

                rewrite ^(.*)$ /index.php?s=$1 last;

                break;

            }

        }
    协助本站SEO优化一下,谢谢!
    关键词不能为空

免责声明

本站提供的一切软件、教程和内容信息仅为个人学习测试使用,请在下载后的24个小时之内,从您的电脑或手机中彻底删除上述内容,不得用于任何商业用途,否则后果自负,请支持购买正版软件!如侵犯到您的权益,请及时与我们联系处理。敬请谅解!

sitemap