For success SEO in your Landing Page and website, you need to create correct sitemap.xml
It is created to help search engines (Yandex, Google) index the pages of your site.
To create the sitemap.xml file, install the pdoSitemap snippet (add-on pdoTools), you can also use GoogleSiteMap, all settings are the same.
Resource setup for sitemap.xml
1. Create a sitemap resource and add the following to the “Document” and “Settings” tabs:
Document tab:
The title is sitemap.xml or sitemap, it doesn’t matter;
The template is empty;
Alias - sitemap;
Hide from the menu - Yes;
Published - Yes.
Settings Tab:
Content Type - XML;
Searchable - No;
Use HTML editor - No;
Freeze URI - Yes;
URI - sitemap.xml
2. In the content of our sitemap resource, call the desired snippet with the necessary parameters, if necessary:
[[! pdoSitemap]]
or
[[! GoogleSiteMap]]
3. Save our sitemap.xml resource
Check the result of work
To do this, enter in the address bar of the browser: http://www.mysite.ru/sitemap.xml
We indicate to search engines (on the example of Yandex and Google) a link to sitemap.xml
Yandex: In the webmaster’s dashboard, select "Indexing Settings" -> "Sitemaps" in the left menu. In the form that opens, enter the URL of the sitemap.xml file and click on the "Add" button.
Google: In the webmaster’s dashboard, select "Sitemaps" in the left menu. In the opened page, enter the URL of the sitemap.xml file and click on the "Submit" button.
You must also specify the Sitemap directive: http://site.ru/sitemap.xml in robots.txt
Original text https://cat-art.ru/blog/sitemap-v-modx-revo
It is created to help search engines (Yandex, Google) index the pages of your site.
To create the sitemap.xml file, install the pdoSitemap snippet (add-on pdoTools), you can also use GoogleSiteMap, all settings are the same.
Resource setup for sitemap.xml
1. Create a sitemap resource and add the following to the “Document” and “Settings” tabs:
Document tab:
The title is sitemap.xml or sitemap, it doesn’t matter;
The template is empty;
Alias - sitemap;
Hide from the menu - Yes;
Published - Yes.
Settings Tab:
Content Type - XML;
Searchable - No;
Use HTML editor - No;
Freeze URI - Yes;
URI - sitemap.xml
2. In the content of our sitemap resource, call the desired snippet with the necessary parameters, if necessary:
[[! pdoSitemap]]
or
[[! GoogleSiteMap]]
3. Save our sitemap.xml resource
Check the result of work
To do this, enter in the address bar of the browser: http://www.mysite.ru/sitemap.xml
We indicate to search engines (on the example of Yandex and Google) a link to sitemap.xml
Yandex: In the webmaster’s dashboard, select "Indexing Settings" -> "Sitemaps" in the left menu. In the form that opens, enter the URL of the sitemap.xml file and click on the "Add" button.
Google: In the webmaster’s dashboard, select "Sitemaps" in the left menu. In the opened page, enter the URL of the sitemap.xml file and click on the "Submit" button.
You must also specify the Sitemap directive: http://site.ru/sitemap.xml in robots.txt
Original text https://cat-art.ru/blog/sitemap-v-modx-revo
No comments: