业务经理

微信扫描以上二维码

028-61286886

技术咨询

写了tag页和搜索页的伪静态规则但是测试了一下http:te

迅睿框架 更新 2021-09-06 16:14:49 trunnano

写了tag页和搜索页的伪静态规则,但是测试了一下,http://test.kmpass.com/tag/3d_print.html,http://test.kmpass.com/search/3d_print.html,都不起作用?

"tag\/([\w]+).html(.*)"  => 'index.php?s=tag&name=$1',

"search\/([\w]+).html(.*)"  => 'index.php?s=product&c=search&keyword=$1',


方案

  • 若凌 #1 · 2019-10-18 08:35:26
    满意答案
    "tag\/(.+).html(.*)" => 'index.php?s=tag&name=$1',
  • trunnano #2 · 2019-10-18 10:47:55
    若凌还是不起作用
  • 海水正蓝 #3 · 2019-10-18 10:49:16
    "tag\/(.*).html(.*)" => 'index.php?s=tag&name=$1',
  • trunnano #4 · 2019-10-18 11:09:11
    海水正蓝我觉得规则没问题,是不是Linux宝塔Nginx配置的问题?
  • 易学习 #5 · 2019-10-18 11:13:33
    看访问页面时提示什么内容
  • trunnano #6 · 2019-10-18 11:16:04
    易学习

    404 Not Found

    测试链接是这个:http://test.kmpass.com/search/3d_print.html
  • 易学习 #7 · 2019-10-18 11:22:39
    这个是服务器发出的404,说明服务器不支持伪静态,哈哈trunnano
  • trunnano #8 · 2019-10-18 12:17:21
    易学习我把规则写到网站伪静态就可以,为什么放到迅睿的config/rewrite.php文件中就不行,是哪配置的问题?
    微信截图_20191018120731.png
  • 易学习 #9 · 2019-10-18 12:22:56
    大错特错,你看cms后台的伪静态检测工具的提示代码复制进去trunnano
  • trunnano #10 · 2019-10-18 12:34:03
    易学习两种方法都行,如果按照迅睿的静态规则,需要把以下代码放到Nginx伪静态配置中,然后rewrite规则才能生效!
    77720191018122903.png
  • trunnano #11 · 2021-09-06 16:14:49
    @若凌:66666666666666666

迅睿系统漏洞

图片格式转化
图片格式转化(2026-10-17)
修复百度编辑器里的内容图片没有转换为webp格式 历史文章列表不显...
站群分站系统
站群分站系统(2026-10-15)
子站域名新增llms.txt访问
图书阅读系统
图书阅读系统(2026-10-14)
全站移动端样式适配 首页分类 Tab 横滑容器,左右渐变滚动提示 ...
GEO系统
GEO系统(2026-10-14)
修复下载zip空白地址问题 修复流量复刻和任务队列错误
GeoSeo收录宝
GeoSeo收录宝(2026-10-14)
新增 站长工具箱 前端首页自动调用meta 数据
滑块验证码 Gocaptcha
滑块验证码 Gocaptcha(2026-10-13)
基于开源项目 go-captcha 的行为验证码插件,滑动拼图、区域...
GeoSeo工具箱
GeoSeo工具箱(2026-10-13)
优化巡检任务
GeoSeo排名助手
GeoSeo排名助手(2026-10-11)
加入大模型自定义
SEO聚合关键字
SEO聚合关键字(2026-10-11)
优化关键字列表页最多支持1万篇文章,过多会导致服务器扛不住;