在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
让这个代码更加完善,可以同时生成首页、文章、单页面、分类和标签的 sitemap!
php 代码
广州vi设计公司http://www.maiqicn.com 办公资源网站大全 https://www.wode007.com 纯静态Linux 定时任务+wget 定时生成 sitemap.xml 具体实现:将 sitemap.php 放到某个不为人知的目录,然后定时使用 wget 去请求这个文件,并将数据保存为 sitemap.xml 存放到网站根目录就可以了!比如: 如果是启用了 https 的站点,需要加入 --no-check-certificate 的选项
|
2022-08-18
2022-08-16
2022-11-06
2022-08-18
2022-08-15
请发表评论