云优CMS官方论坛_开源城市分站管理系统
搜索
 找回密码
 立即注册
查看: 590|回复: 3

宝塔环境404伪静态设置不生效

[复制链接]

5

主题

8

帖子

8

积分

新手上路

Rank: 1

积分
8
发表于 2021-5-12 11:33:04 | 显示全部楼层 |阅读模式
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 ^/baidu_verify_tJund4yiW9.html$ /baidu_verify_tJund4yiW9.html last;
    rewrite ^/b.php$ http://www.baidu.com permanent;
    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;
     fastcgi_intercept_errors on;
     error_page 404 /404.htm;
    rewrite ^/statics/ueditor/dialogs/(.*)/(.*).html$ /statics/ueditor/dialogs/$1/$2.html 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 ^/(.*)/(.*).html$ /index.php?s=index/show/index&etitle=$2&ctitle=$1 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/index/index&area=$1 last;

回复

使用道具 举报

2

主题

5

帖子

5

积分

新手上路

Rank: 1

积分
5
发表于 2021-5-12 16:08:28 | 显示全部楼层
今天升级到最新版后,原来列表标签调用的SQL范围筛选功...

<yunu:list cid="$cid" titlelen="20" limit="9" sql="175 and 173 and 174" >
深圳网站建设,百度关键词排名推广 www.35430.com
回复

使用道具 举报

5

主题

8

帖子

8

积分

新手上路

Rank: 1

积分
8
 楼主| 发表于 2021-5-12 17:03:00 | 显示全部楼层
allen_杨 发表于 2021-5-12 16:08
今天升级到最新版后,原来列表标签调用的SQL范围筛选功...

你这是什么意思 没看懂
回复

使用道具 举报

0

主题

1

帖子

1

积分

新手上路

Rank: 1

积分
1
发表于 2021-8-13 18:53:33 | 显示全部楼层
本帖最后由 17320623153 于 2021-8-13 18:55 编辑

解决了吗
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|小黑屋|云优CMS官方论坛

GMT+8, 2021-10-22 14:34 , Processed in 0.047940 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表