[SEO internal measures] Creating XML site map
May 12, 2022 Technical SEO , site map , crawl countermeasures , SEO measures , internal measures
How to make an XML site map
XML site map sample
The XML site map is created as follows.
… ①… ②… ② http://www.sample.com/index.html ... 2015-01-01… ④ DAILY… ⑤ 1.0… ⑥ ⑥ http://www.sample.com/sub1/index.html 2015-01 -01 months 0.8
Save the XML site map in UTF8 format of the text file.
Also, the file name should be "sitemap.xml".
Basics of XML site map
- ①<?xml version="1.0″ encoding="UTF-8″?> … XML Declaration
- I will declare XML.
The XML declaration is a string that shows that the document is "XML document!" - ②
- Put the entire site information in the tag.
It's like saying, "It's an XML site map of this site!" - ③ xmlns = "http://www.sample.com/schemas/sitemap/0.9">… (2) Description of each page URL
- <url>Write the information on each page in the tag. Regarding URL<loc> See you.
http://www.sample.com/index.html 2015-01-01 Daily 1.0
Although the information is, I think it will be "What is that information and tag?"
Tag commentary
- ④ LastMod
- It is a tag that represents the last update date of the page.
As for how to write, I will describe it in the order of the date. (Example: 2015-01-01)
On the last update date set on each page, the crawler determines whether to crawl. However, just because it is an old update does not mean that it will not be crawled. - ②ChangeFreq
- It is a tag that represents the update frequency of the page.
The values used are as follows.- Always: Always (every time you access)
- Hourly: Once an hour
- Daily: Once a day
- Weekly: Once a week
- Monthly: Once a month
- Yearly: Once a year
- NEVER: No renewal (page does not change)
It does not mean that it will not be crawled without using this option tag, but it is possible to adjust the crawl frequency.
So, if you use a NEVER, you won't have a crawler, and it's Always so you don't always come.
- ③Priority
- The most important pages can be set to 0.0 as 1.0.
(Example) Top page (most important page)… 1.0
Updates frequently pages… 0.8
Basic page without update… 0.0
The height of the priority is not so important, but if all pages are the same value, there is no difference.
Looking at this priority, the crawler has determined a page that indexes with priority, so let's make a difference.
summary
The XML site map is one of the important factors in SEO internal measures.
Site maps basically require all pages of the site, so it is difficult to make ...
I will introduce the tools that can be easily created next time!