插件下载
插件原理
其实这个插件的实现原理也很简单,就是通过了Sitemap路径索引所方式,以1000篇文章为一个节点,生成一个单独的Sitemap.xml文件,然后再对生成的Sitemap.xml链接进行一个聚合。
使用方法
- 下载后解压至
/usr/plugins/
并将文件夹重命名为HPSitemap; - 后台设置生成目录和密匙;
访问生成sitemap方法的url,测试生成sitemap,并前往sitemap路径检验是否成功;
- URL构造为
你的域名/action/update_sitemap?auth=密匙
。例如:密匙为key
,则URL为www.iyuu.cn/action/update_sitemap?auth=key
- 如果没开启伪静态,则URL为
你的域名/index.php/action/update_sitemap?auth=密匙
。
- URL构造为
- 监控该URL(频率可设置为5分钟左右)。Linux命令行调用:
wget https://您的域名/action/update_sitemap?auth=密匙
github主页:https://github.com/invelop/Typecho-HPSitemap
码云主页:https://gitee.com/ETAS/Typecho-HPSitemap
插件地址:https://blog.irow.top/archives/256.html
版权属于:大卫科技Blog
本文链接:https://www.iyuu.cn/archives/62/
转载时须注明出处