这边用的插件是这个:
https://github.com/bayunjiang/typecho-sitemap/tree/master/Sitemap
感谢他/她的付出

安装的方式也很简单,下载解压,将Sitemap文件拉到网站的usr/plugins目录
如果是linux系统,需要用chmod命令配置一下权限,755就够了
然后就在后台点击启用该插件即可

然后访问 http://your domain/sitemap.xml
有部分人访问会提示404错误,那是因为你的没有开启地址重写功能,
需要访问http://your domain/index.php/sitemap.xml

如果你能正确看到xml的内容,就是成功了

但我这边访问时会提示xml错误

error on line 3 at column 6: XML declaration allowed only at the start of the document

查看xml输出源码时发现在输出<?xml version="1.0" encoding="utf-8"?>前额外多输出了两行空白
发现在根目录下的config.inc.php
1
2
3 <?php
<?php 需要顶格书写,即<?php 前面不能有空白,修正即可访问