網站地圖分爲三種文件格式:xml格式、html格式以及txt格式。
Google、Yahoo! 和 Microsoft 在內的衆多廠商的支持。網址:https://www.sitemaps.org/zh_CN/faq.html。
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc>http://www.xiaowangyun.com/</loc>
<changefreq>daily</changefreq>
</url>
</urlset>
網站地圖製作提交步驟:1、生成網站地圖:
網頁版:http://www.xml-sitemaps.com/
2、下載生成的地圖文件sitemap.xml並上傳至網站根目錄
3、到站長平臺提交網站地圖。
生成網站地圖:http://www.xml-sitemaps.com/
各搜索引擎推薦網站地圖格式:
Google:建議使用xml格式的網站地圖
地圖提交地址:https://www.google.com/webmasters/tools/dashboard?hl=zh-CN
Yahoo: 建議使用Txt格式的網站地圖
Yahoo地圖提交地址 :http://sitemap.cn.yahoo.com/?require_login=1
Baidu:建議使用robots.txt提交html格式的網站地圖
http://www.baidu.com/search/url_submit.html
在robots.txt爬蟲協議中定義(Allow: /sitemap.hxml)robots.txt文檔是表式允許蜘蛛網訪問網站地圖。爬蟲協議寫法參見:網站優化之robots.txt爬蟲協議的寫法。
搬運自:http://www.xiaowangyun.com/wyblog/detail/?id=107
自動生成sitemap:http://www.xml-sitemaps.com/,ps:自動生成有點慢
一個自動生成的sitemap示例展示:
url改一下信息就可以用
但是不建議用xml,作爲一個sitemap太麻煩了,直接txt比較搞笑簡單,一行一個url入口
https://www.xml-sitemaps.com/
https://www.xml-sitemaps.com/standalone-google-sitemap-generator.html
https://www.xml-sitemaps.com/about-sitemaps.html
https://www.xml-sitemaps.com/news.html
https://www.xml-sitemaps.com/seo-tools.html
https://www.xml-sitemaps.com/testimonials.html
https://www.xml-sitemaps.com/html-sitemap.html
https://www.xml-sitemaps.com/images-sitemap.html
https://www.xml-sitemaps.com/video-sitemap.html
https://www.xml-sitemaps.com/news-sitemap.html
https://www.xml-sitemaps.com/rss-feed.html
https://www.xml-sitemaps.com/broken-links.html
https://www.xml-sitemaps.com/news-20191001.html
https://www.xml-sitemaps.com/news-20180517.html
https://www.xml-sitemaps.com/news-20180118.html
https://www.xml-sitemaps.com/validate-xml-sitemap.html
https://www.xml-sitemaps.com/se-bot-simulator.html
https://www.xml-sitemaps.com/http-headers-viewer.html
https://www.xml-sitemaps.com/privacy-policy.html
https://www.xml-sitemaps.com/contact.html
https://www.xml-sitemaps.com/aff/
https://www.xml-sitemaps.com/sitemap.xml
https://www.xml-sitemaps.com/sitemap.html
https://www.xml-sitemaps.com/sitemap_images.xml
https://www.xml-sitemaps.com/sitemap_video.xml
https://www.xml-sitemaps.com/sitemap_news.xml
https://www.xml-sitemaps.com/text-sitemap.html
https://www.xml-sitemaps.com/mobile-sitemap.html
https://www.xml-sitemaps.com/generator-trial.html
https://www.xml-sitemaps.com/documentation-xml-sitemap-generator.html
https://www.xml-sitemaps.com/howto-install.html
https://www.xml-sitemaps.com/version-history.html
https://www.xml-sitemaps.com/license.html
https://www.xml-sitemaps.com/refund-policy.html
https://www.xml-sitemaps.com/generator-addons.html
把這個提交上去就可以了