адресе https://site.com/index убрать index?
                  
                  
                  вставлял этот снипет https://docs.modx.pro/komponentyi/localizator/formirovanie-sitemap
                  
                  
                  <urlset>
                  
                  
                  <url>
                  
                  
                  <loc>https://site.com/page-404</loc>
                  
                  
                  <lastmod>2022-06-12</lastmod>
                  
                  
                  <changefreq>weekly</changefreq>
                  
                  
                  <priority>0.5</priority>
                  
                  
                  </url>
                  
                  
                  <url>
                  
                  
                  <loc>https://site.com/contacts</loc>
                  
                  
                  <lastmod>2022-05-27</lastmod>
                  
                  
                  <changefreq>weekly</changefreq>
                  
                  
                  <priority>0.5</priority>
                  
                  
                  </url>
                  
                  
                  <url>
                  
                  
                  <loc>https://site.com/price/</loc>
                  
                  
                  <lastmod>2022-05-27</lastmod>
                  
                  
                  <changefreq>weekly</changefreq>
                  
                  
                  <priority>0.5</priority>
                  
                  
                  </url>
                  
                  
                  <url>
                  
                  
                  <loc>https://site.com/makeup</loc>
                  
                  
                  <lastmod>2022-06-10</lastmod>
                  
                  
                  <changefreq>weekly</changefreq>
                  
                  
                  <priority>0.5</priority>
                  
                  
                  </url>
                  
                  
                  <url>
                  
                  
                  <loc>https://site.com/eyelash-lamination</loc>
                  
                  
                  <lastmod>2022-06-10</lastmod>
                  
                  
                  <changefreq>weekly</changefreq>
                  
                  
                  <priority>0.5</priority>
                  
                  
                  </url>
                  
                  
                  <url>
                  
                  
                  <loc>https://site.com/index</loc>
                  
                  
                  <lastmod>2022-06-10</lastmod>
                  
                  
                  <changefreq>weekly</changefreq>
                  
                  
                  <priority>1.0</priority>
                  
                  
                  </url>
                  
                  
                  </urlset>
                  
                  
                
Хм... В сниппете pdoRes как минимум в Parents указать не нужные разделы, resources - указать не нужные страницы.
вот так, не помогает $resources = $modx->runSnippet('pdoResources', [ 'parents' => 0, 'resources' => '8', 'limit' => 0, 'leftJoin' => '{ "localizator" : { "class" : "localizatorContent", "alias" : "localizator", "on" : "localizator.resource_id = modResource.id" } }', 'select' => '{ "localizator" : "modResource.*, localizator.*, modResource.id" }', 'where' => [ 'localizator.key' => $modx->localizator_key, 'localizator.active' => 1, ], 'return' => 'json', ]);
Обсуждают сегодня