折腾:
【记录】复制crifan.com到crifan.org的WordPress网站后续更新相关内容
期间,去试试
[root@crifan www.crifan.org]# cat sitemap.backup.xml | grep crifan.com
结果:输出的地址都是旧的 crifan.com的

而不是以为的:
-》那可以考虑去:
下载下来,更新替换后,再上传上去
用sz下载吧
sitemap.backup.xml
[root@crifan www.crifan.org]# sz sitemap.backup.xml rz Starting zmodem transfer. Press Ctrl+C to cancel. Transferring sitemap.backup.xml... 100% 627 KB 125 KB/sec 00:00:05 0 Errors
去编辑:

替换:
然后上传上去
先删除之前旧的:
[root@crifan www.crifan.org]# rm sitemap.backup.xml rm: remove regular file ‘sitemap.backup.xml’? y [root@crifan www.crifan.org]# rm -f sitemap.backup.xml.gz
用rz上传:
[root@crifan www.crifan.org]# rz rz waiting to receive. Starting zmodem transfer. Press Ctrl+C to cancel. Transferring sitemap.backup.xml... 100% 627 KB 627 KB/sec 00:00:01 0 Errors [root@crifan www.crifan.org]# ll | grep sitemap -rw-r--r-- 1 root root 628K Sep 17 13:23 sitemap.backup.xml
再去压缩出gz
参考自己的教程:
去:
[root@crifan www.crifan.org]# tar czf sitemap.backup.xml.gz sitemap.backup.xml [root@crifan www.crifan.org]# ll | grep sitemap -rw-r--r-- 1 root root 628K Sep 17 13:23 sitemap.backup.xml -rw-r--r-- 1 root root 85K Sep 17 13:26 sitemap.backup.xml.gz
即可。
转载请注明:在路上 » 【已解决】crifan.org中更新sitemap网站地图信息