当前位置:论坛首页 > Linux面板 > 求助

为什么我的网站用伪静态规则没用呢?

发表在 Linux面板2018-4-18 20:16 [复制链接] 2 1129

    location /content {
    rewrite ^/content.html /tags.php;
    rewrite ^/content/(.*)(?\?.*))*\.html$ /tags\.php\?\/$1;
    rewrite ^/content/(.*)\/(?\?.*))*\.html$ /tags\.php\?\/$1\/;
    rewrite ^/content/(.*)\/([0-9])(?\?.*))*\.html$ /tags\.php\?\/$1\/$2;
    rewrite ^/content/(.*)\/([0-9])\/(?\?.*))*\.html$ /tags\.php\?\/$1\/$2\/;
    }


为什么我的规则没用呢?
使用道具 举报 只看该作者 回复
发表于 2018-4-19 11:00:53 | 显示全部楼层
访问是404?
重载nginx看看
使用道具 举报 回复 支持 反对
发表于 2018-4-20 22:57:46 | 显示全部楼层
重载后依然是404,按照宝塔里边的代码试了不行,我在网上找了所有织梦nginx的伪静态规则都不行,不知道是不是我PHP版本太高了,用的是7.2.4的版本
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

企业版年付运维跟进群

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急问题处理

论坛响应时间:10分钟

问题处理方式:1对1处理(优先)

工作时间:白班:9:00 - 18:00

工作时间:晚班:18:00 - 24:00

立即付费处理
快速回复 返回顶部 返回列表