Created
August 14, 2023 18:10
-
-
Save brunolimame/028f337715c29c3d96ce1c3f0ff4c523 to your computer and use it in GitHub Desktop.
Estrutura para sitemap.xml em vários arquivos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"> | |
<url> | |
<loc>http://sitema.local/noticia/4/54645</loc> | |
<lastmod>2018-07-26T10:07:53-03:00</lastmod> | |
<priority>0.5</priority> | |
<changefreq>monthly</changefreq> | |
</url> | |
<url> | |
<loc>http://sitema.local/noticia/3/teste</loc> | |
<lastmod>2018-08-09T14:15:38-03:00</lastmod> | |
<priority>0.5</priority> | |
<changefreq>monthly</changefreq> | |
</url> | |
</urlset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | |
<sitemap> | |
<loc>http://sitecms.it/sitemap/sitemap-noticia-2018.xml</loc> | |
<lastmod>2018-08-10T16:33:00-03:00</lastmod> | |
</sitemap> | |
</sitemapindex> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | |
<sitemap> | |
<loc>http://sitema.local/sitemap/sitemap-noticia.xml</loc> | |
<lastmod>2018-08-10T16:55:13-03:00</lastmod> | |
</sitemap> | |
<sitemap> | |
<loc>http://sitema.local/sitemap/sitemap-evento.xml</loc> | |
<lastmod>2019-10-24T10:41:33-03:00</lastmod> | |
</sitemap> | |
</sitemapindex> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sitemap.xml é um arquivo de índice de outros sitemaps, listando os arquivos outros arquivos de, índice separados por setor, sitemap-noticia.xml e sitemap-evento.xml.
Nos arquivos sitemap-noticia.xml e sitemap-evento.xml, estão lidados os arquivos de índice para cada ano.
No arquivo sitemap-noticia.xml está listando o arquivo sitemap-noticia-2018.xml, que contem a lista dos links, data da última alteração e prioridade do link.
Cada arquivo final, com a lista dos links deve obedecer os limite de 50.000 mil links o limite de tamanho de 50MB