is环境下伪静态规则 ,sitemap.txt 以及xml 是404

迅睿框架 更新 2022-04-06 10:51:23 爬树蜗牛


iis环境下伪静态规则 ,环境:microsoft-iis/10.0 ,已配置web.config,首页栏目页,内容页都可以,sitemap.txt 以及xml 是404,代码如下:


伪静态配置:

 "([A-za-z0-9 \-\_]+)-show-([0-9]+)-([0-9]+)\.html" => "index.php?c=show&id=$2&page=$3",  //【共享栏目和内容页】模块内容页(分页)({dirname}-show-{id}-{page}.html)
       "([A-za-z0-9 \-\_]+)-show-([0-9]+)\.html" => "index.php?c=show&id=$2",  //【共享栏目和内容页】模块内容页({dirname}-show-{id}.html)
       "([A-za-z0-9 \-\_]+)-list-([0-9]+)\.html" => "index.php?c=category&dir=$1&page=$2",  //【共享栏目和内容页】模块栏目列表(分页)({dirname}-list-{page}.html)
       "([A-za-z0-9 \-\_]+)\.html" => "index.php?c=category&dir=$1",  //【共享栏目和内容页】模块栏目列表({dirname}.html)
   "sitemap.txt' => 'index.php?s=sitemap&page=999", // 地图规则
   "sitemap.xml' => 'index.php?s=sitemap&c=home&m=xml&page=998", // 地图规则

代码随附件

16492102823c2562.txt


方案

  • GoWorkRoom #1 · 2022-04-06 10:01:35
     "sitemap\.txt' => 'index.php?s=sitemap&page=999", // 地图规则
       "sitemap\.xml' => 'index.php?s=sitemap&c=home&m=xml&page=998", // 地图规则
  • 爬树蜗牛 #2 · 2022-04-06 10:10:26
    GoWorkRoom 好像不行,我反复确认了应该没少啥,请您再帮看一下?
  • 丝竹 #3 · 2022-04-06 10:22:38
    满意答案
    "sitemap' => 'index.php?s=sitemap&page=999",
    iis访问不要带txt了
  • 爬树蜗牛 #4 · 2022-04-06 10:36:42
    丝竹 web.config 是否需要调整?我尝试了一下,还是不可以??
  • 爬树蜗牛 #5 · 2022-04-06 10:51:23
    @丝竹:你,弄好了,刚喝了口水,看到' 和 "的区别

迅睿系统漏洞

站群分站系统
站群分站系统(2026-10-15)
子站域名新增llms.txt访问
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万篇文章,过多会导致服务器扛不住;
CMS内容同步复制
CMS内容同步复制(2026-10-10)
增加时间是否更新的开关